Jump to content

weird error


ohdang888

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.