|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-10 10:21 UTC] felixdv@php.net
[2008-07-10 10:22 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 17:00:01 2025 UTC |
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