Hello Today I was trying to mail from my pc with the php mailer and I got an error. The error was: Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in E:\xampp\htdocs\mail.php on line 9 Code (markup): And the php script code was: <? if ($_POST['submit']) { ini_set("SMTP","localhost"); $headers = 'From: mailer@mail.com'' . "\r\n" . 'Reply-To: mailer@mail.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $message = $_REQUEST['message']; $title = $_REQUEST['title']; mail("mymail@gmail.com", $title, $message, $headers); } ?> <form action="<?php $PHP_SELF; ?>" method="post"> Message: <input type="text" name="message" /> Title: <input type="text" name="title" /> <input type="submit" name="submit" /> </form> PHP: Any ideas of what can I do? Thank you.
You have to use an e-mail address based on your domain e.g. , and not try to use an outside mail address like . (as the address you are sending mail from.) Also check if your smtp server requires authentication. SMTP is your outgoing e-mail service.
Hi, You may try this too.. To alow non-local relay can go to Mercury32 / configuration / mercuryS SMTP server / connection control , uncheck the "Do not permit SMTP relaying of non-local mail".
Hmmm, now it lets me send a mail from the script with no errors but the mail never arrives. P.S: I opened the port 25 for my router Thanks.