I have a form to email in php. i have the same form and the same script in another website in the same server and it works great. only this one site is generating the "Warning: Cannot modify header information - headers already sent by...".
i know you should check for blank spaces but it does not help.
the contact.php first line has a "php require" to include the for to mail script.
the warning indicates that this line produces the problem.
...sent by (output started at /usr/www/users/geg/project
in the required file at the very end of the script i use the "header location".
i am attaching peaces of the code below:
the two first lines in the contact.php
<?php $page = basename($_SERVER['SCRIPT_NAME']);?>
the first two lines in the "mailscript.inc.php"
<?php $toadress = "mark <firstname.lastname@example.org>";
$msubject = "s-98";
the end of the lines in the "mailscript.inc.php"
mail ($toadress,$msubject,$mcontent,$mmore, "-f email@example.com");