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
mail()
functionality withpostfix
under ubuntu, take a look here, here and here.