WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to enable email sending from my localhost installation of WordPress. I need to do so to test out some notification functionality as well as alerts and password resets.

I know that you must configure your php.ini and sendmail.ini, and that it is apparently quite easy, but I can't for the life of me get it to work. My php.ini file contains:


[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury



I'm wondering if I have set up something incorrectly as I'm not currently receiving any emails when I do a password reset.

I also have mercury installed and running. Is there something wrong in one of my files, or have I missed a step? Everything I'm reading says this should be simple, but I haven't been able to resolve the issue.


share|improve this question
This isn't a wordpress specific problem - see what's on topic at help center. For this reason the question probably should be migrated to Server Fault. Apart from that, I usually setup the mail() functionality with postfix under ubuntu, take a look here, here and here. – ialocin Nov 21 '13 at 14:38
@toscho made me realize, by letting me read the server fault on-topic page, that Server Fault isn't the right place. Additionally he linked me to Do questions on WAMP belong on Stack Overflow, Server Fault or Super User?, which leads to the conclusion there's no definitive answer where to ask your kind of question, it depends on the problem, read the meta discussion for a insight. – ialocin Nov 21 '13 at 15:09
Thank you for your comment. I was able to resolve the issue. I was directed here from SO. Inside of my php.ini file I commented out the wrong line. I was enabling mail through send disk and not sendmail. – EHerman Nov 21 '13 at 15:23
Good for you! It happens that Stack Overflow redirects questions/people here, because the word »wordpress« appears in their problem, but this is definitely not in scope of WordPress Development. – ialocin Nov 21 '13 at 15:26
That's what I figured. Sorry to place the question over here. I can mark the question as answered by 10pm tonight (due to my new account). Thanks again for your response. Have a great day ialocin! – EHerman Nov 21 '13 at 15:37
up vote 0 down vote accepted

I was able to resolve the issue. Inside of my php.ini file I commented out the wrong line. I was enabling mail through send disk and not sendmail.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.