Welcome to WebmasterWorld Guest from 54.226.159.223

Forum Moderators: coopster & jatar k

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

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

Junior Member

10+ Year Member

joined:Mar 8, 2007
posts: 83
votes: 0


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.
12:21 pm on Nov 11, 2017 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11156
votes: 116


You probably need to edit SmtpServerList.xml so that Argosoft is configured to send the proper SMTP headers:
[argosoft.com...]
8:28 pm on Nov 12, 2017 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 8, 2007
posts: 83
votes: 0


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.
9:44 pm on Nov 12, 2017 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11156
votes: 116


Occam's Razor applied...