Page 1 of 1

Email script not working after upgrade to v. 4.3

Posted: Sat Oct 23, 2004 10:30 am
by verabug
After my host updated the PHP version to 4.3, all of my mail scripts fail.

Code: Select all

$eaddress = blah@blah.com

$subject = "blah";

$msg = "blah blah blah";

$headers = "From: vera@mediasparkles.com\nContent-Type: text/html";

mail($eaddress, $subject, $msg, $headers);
Any idea what I should look into it? This was working fine before the version upgrade.

Posted: Sat Oct 23, 2004 10:54 am
by John Cartwright
maybe have the return sender

Posted: Mon Oct 25, 2004 8:16 pm
by verabug
What do you mean?

Posted: Mon Oct 25, 2004 8:28 pm
by John Cartwright
Some servers also require a second newline in the headers and
make sure you do not have any newline characters in the to or subject, or the mail may not be sent properly.

Posted: Mon Oct 25, 2004 10:24 pm
by kettle_drum
Maybe also run a phpinfo() to see they have added mail support to the new version - it might not be a problem on your side.