Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:

PHP.ini

[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
 SMTP=smtp.gmail.com
 smtp_port=587
 sendmail_from=gmail-account@gmail.com
 Sendmail.ini

Sendmail.ini

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=gmail-account@gmail.com
auth_password=gmail-password
force_sender=gmail-account@gmail.com

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.

Thanks

share|improve this question
1  
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

1 Answer 1

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

 
discard

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.