php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34374 Mail not received by yahoo etc
Submitted: 2005-09-05 12:12 UTC Modified: 2005-09-05 12:21 UTC
From: garth at livinlife dot co dot za Assigned:
Status: Not a bug Package: Website problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2005-09-05 12:12 UTC] garth at livinlife dot co dot za
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();		
	
	}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-05 12:21 UTC] jacques@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 07:00:01 2026 UTC