ohdang888 Posted April 7, 2008 Share Posted April 7, 2008 Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\xampp\htdocs\mail.php on line 13 i am trying to send it from postmater@localhost so its not like its non-local this is the code.... its very simple... <?php // The message $message = "Line 1\nLine 2\nLine 3"; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70); $headers = 'From: Localhost <postmater@localhost>' . "\r"; // Send mail('[email protected]', 'My Subject', $message, $headers); echo 'done'; ?> Heres my php.ini [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = postmaster@localhost ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = Thanks! Link to comment https://forums.phpfreaks.com/topic/99898-weird-error/ Share on other sites More sharing options...
ohdang888 Posted April 7, 2008 Author Share Posted April 7, 2008 *bump* Link to comment https://forums.phpfreaks.com/topic/99898-weird-error/#findComment-510919 Share on other sites More sharing options...
kenrbnsn Posted April 7, 2008 Share Posted April 7, 2008 You have something misconfigured in your local mailserver. This is not a PHP problem. Ken Link to comment https://forums.phpfreaks.com/topic/99898-weird-error/#findComment-510952 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.