Forum Moderators: coopster

Message Too Old, No Replies

PHP Email - Mail Server Response - 551 User not Local Cannot Relay

         

Saboi

8:12 am on Nov 11, 2017 (gmt 0)

10+ Year Member



Hello friends,

I am experiencing a problem with sending email using PHP.

I have Apache, PHP and Argosoft installed on my computer.

The error I get when I try to send an email via a web form is:


Warning: mail(): SMTP server response: 551 User not local. We don't relay in C:\Users\samijo.people\Documents\Programs\USB Webserver\root\index_reply.php on line 14


The code on line 14 is:


mail($to,$subject,$txt,$headers);


I kindly seek your guidance on how to work around this.

phranque

12:21 pm on Nov 11, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You probably need to edit SmtpServerList.xml so that Argosoft is configured to send the proper SMTP headers:
[argosoft.com...]

Saboi

8:28 pm on Nov 12, 2017 (gmt 0)

10+ Year Member



Thank you for the pointer.

I was using an address not registered as $from. I changed it to one registered on the domain and then all worked well.

Thank you once more.

phranque

9:44 pm on Nov 12, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Occam's Razor applied...