Page 1 of 1
Cannot send mail from localhost.
Posted: Fri Mar 25, 2011 2:45 am
by klevis miho
How to make my localhost a smtp server?
Re: Cannot send mail from localhost.
Posted: Fri Mar 25, 2011 10:50 am
by social_experiment
XAMMP has a mail server option (no idea how to set it up though) :/
Re: Cannot send mail from localhost.
Posted: Fri Mar 25, 2011 10:52 am
by klevis miho
Yeah, I saw the option, Mercury mail server, but I didn't know how to set it up.
Re: Cannot send mail from localhost.
Posted: Fri Mar 25, 2011 10:57 am
by social_experiment
Setting+up+XAMPP+mercury+mail+server
The first link looks like it might be helpful

Re: Cannot send mail from localhost.
Posted: Fri Mar 25, 2011 11:05 am
by klevis miho
Yes, I saw this, but I wanted to discuss it here

Re: Cannot send mail from localhost.
Posted: Fri Mar 25, 2011 11:44 am
by social_experiment
Good point.
I got it working using the default settings. After you have created a new user you simply add the account to something like Outlook and then check your mail as normal. This is for sending mail using mail().
Re: Cannot send mail from localhost.
Posted: Fri Mar 25, 2011 11:46 am
by klevis miho
Thank you, I will check that out and tell you.
Re: Cannot send mail from localhost.
Posted: Sat Mar 26, 2011 8:59 am
by klevis miho
Ok, after just starting the Mercury service, I test the email from a php script:
Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry.
This error shows up.
Re: Cannot send mail from localhost.
Posted: Sat Mar 26, 2011 9:27 am
by klevis miho
I did the steps provided in this blog:
http://www.danieltmurphy.com/setting-up-mercury-smtp/
The error got away, and I see in "Mercury Core Process": To:
myemail@gmail.com (non-local) OK.
However, I haven't received any email in
myemail@gmail.com
Re: Cannot send mail from localhost.
Posted: Sat Mar 26, 2011 4:53 pm
by social_experiment
I haven't tried sending to a non-local address but to a local one (user@localhost) it works ok