|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-05 12:21 UTC] jacques@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jun 16 08:00:02 2026 UTC |
Description: ------------ Hi all... I have two webpages that send mail from. The one works fine however the second does not. They both send the mail and it is received everytime by my own clients using my mail server but not by other that use yahoo etc. The one sends it and it is received by yahoo but the other one seems to never arrive. I have copied the code from the one into the other but this does not help. PS. If i send that one that does not get received from my local PC running the exact spec as my webserver it works but not when i upload it. Thanks guys!!! Reproduce code: --------------- if ($e && $m) { // If everything's OK. $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: $from"; $break = '<br>'; $body = ereg_replace("\r", $break, $body); if (mail ("$to", "$subject", $body, $headers)){ echo "Thank you, your email has been sent to <b>$to</b> <br />for the advert <b>$subject</b><br /><br />"; } else { echo '<font color="red">System error, please try again.</font><br><br>'; } include ('includes/footer.html'); exit(); }