Jump to content

Problems with mail server


JJohnsenDK

Recommended Posts

Hey

I use mercury as mail server, if any of you know of it, and i have some problems with getting it to work. I get this message when i try to use the mail server:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\Programmer\xampp\htdocs\test\sendmymail.php on line 46

The same message everytime. I dont understand the warning because it says: We do not relay non-local mail? Im  using the server on localhost and shouldnt that be local?
Link to comment
https://forums.phpfreaks.com/topic/28510-problems-with-mail-server/
Share on other sites

You have to turn off SMTP Authentication for the localhost. I can't remember exactly how you do it for Mercury, but I think you need to open [b]mercury.ini[/b]

[code][MercuryS]
Relay : 0
Strict_Relay : 1
Allow : 127.0.0.1 # localhost[/code]

Where 127.0.0.1 is put your IP, then put that same IP for the SMTP value in your PHP.INI file. This was how it use to work, it might be the same way, check your documentation to be sure.

printf

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.