#34374 [NEW]: Mail not received by yahoo etc
| From: | garth at livinlife dot co dot za | Date: | Mon, 05 Sep 2005 10:12:09 +0000 |
| Subject: | #34374 [NEW]: Mail not received by yahoo etc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-29198@lists.php.net to get a copy of this message | ||
From: garth at livinlife dot co dot za
Operating system: Linux
PHP version: Irrelevant
PHP Bug Type: Website problem
Bug description: Mail not received by yahoo etc
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();
}
--
Edit bug report at http://bugs.php.net/?id=34374&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34374&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34374&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34374&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34374&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34374&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34374&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34374&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34374&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34374&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34374&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34374&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34374&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34374&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34374&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34374&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34374&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34374&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34374&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34374&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34374&r=mysqlcfg