#45474 [Opn->Bgs]: mail worked but not received

From: Date: Thu, 10 Jul 2008 10:21:26 +0000
Subject: #45474 [Opn->Bgs]: mail worked but not received
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126432@lists.php.net to get a copy of this message
ID: 45474 Updated by: felixdv@php.net Reported By: smartin_12 at yahoo dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: windows xp PHP Version: 5.2.6 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The correct delivery of the mail is the responsability of the MTA on your machine. The provided code works as it should over here, this is not a mail() issue. Previous Comments: ------------------------------------------------------------------------ [2008-07-10 10:06:02] smartin_12 at yahoo dot com Description: ------------ mail function execute properly but not received. if i upload the mail.php which contain mail function at our server the function is sent but mail not received Reproduce code: --------------- <?php $to = "smartin_12@yahoo.com"; $subject = "PBCM-Prayer Request"; $message = '<html> <head> </head> <body> <p></p> <table> <tr> <td>Name :</td><td></td><td>'.$_POST[name].'</td> </tr> <tr> <td>E-Mail :</td><td></td><td>'.$_POST[mail].'</td> </tr> <tr> <td>Phone :</td><td></td><td>'.$_POST[phoneno].'</td> </tr> <tr> <td>Subject :</td><td></td><td>'.$_POST[prayer].'</td> </tr> <tr> <td>Status :</td><td></td><td>'.$_POST[who].'</td> </tr> <tr> <td>PrayerRequest :</td><td></td><td>'.$_POST[request].'</td> </tr> </table> </body> </html> '; $from= "MIME-Version: 1.0\r\n"; $from.= "Content-type: text/html; charset=iso-8859-1\r\n"; $from.= "From: $_POST[name]<$_POST[mail]>"; mail($to,$subject,$message,$from); //phpinfo(); ?> Expected result: ---------------- the mail should go to the corresponding id ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45474&edit=1

« previous php.bugs (#126432) next »