Setting up XAMPP and Sendmail to enable WordPress emails on localhost

by EHerman   Last Updated August 10, 2018 12:08 PM

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
 [email protected]
 Sendmail.ini

Sendmail.ini

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=gmail-password
[email protected]

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

Tags : localhost xampp


Answers 1


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.

EHerman
EHerman
December 20, 2013 13:56 PM

Related Questions




Setting up a local copy from a production site

Updated February 19, 2016 01:03 AM