Related

Question

Wordpress is not sending emails

Hello, I need some directions, please. I have a web server successfully running on Ubuntu 14.04. LAMP is properly configured. Everything works flawless. Recently, I decided to try Wordpress. I manually installed Wordpress 5.0.3. Everything is working just fine, except for the fact that I tryed to change the admin e-mail in Wordpress and it says I’ll receive a confirmation e-mail, which never arrives. I’m confused. I have no mail server. What is happening exactly and what are the next steps I should take?

Leave a comment

I’m having the same issue, and I think I’ve narrowed it down after some hours of playing around. If I am logged in, I never get an email, even if I try to reset the password. However, the PHP emailer is working because anonymous comments do send emails. Also, I get notified when others create new accounts. That is the extent of it, though. What is also strange is that I can use the mail command to send email, but sendmail (from postfix) never does. Do you see the same thing?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.

I would recommend using an SMTP plugin like Easy WP SMTP. This would allow you to specify an SMTP server like Gmail, that way your Wordpress emails would be sent through Gmail’s SMTP server rather than just plain PHP mail.

what if we are hosting tens of wordpress sites for our clients on one of our droplets which we cannot log in to and install an wp smtp plugin?

we still need to fix the php mailer issue, dont we?

from the output of “nc -vz smtp.gmail.com 25”, we got “Connection to smtp.gmail.com 25 port [tcp/smtp] succeeded!” which means at least the droplet is able to communicate over the ports required to send emails externally.

from the output of “tail -20 /var/log/mail.log” below, we got some deferred emails sent from some of our clients. will those deferred emails prevent the droplet from sending other emails? any idea?