Wordpress 1-click - mail() working but Wordpress not sending mail

I’ve setup a Wordpress 1-click droplet following -->

But wordpress isn’t sending (or they are falling somewhere) notification emails, like new comment, new user etc.

I can send an email using sendmail and I can run a php script using mail().

If I instal WP SMTP Mail plugin it works, but I would prefer to have a server wide setting such that all instances of wordpress dont need their own plugin.

Can someone point me in the right direction?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @arrancurran,

I would recommend using the SMTP Mail Plugin as that way you are using Authentication and a different port than 25, usually 567. This is important as everywhere using the sendmail function or PHP mail() is considered unsafe and is usually used by spamming websites/scripts. As such most e-mail providers block/defer messages not using SMTP but sendmail or PHP mail() on port 25.

As such, I strongly recommend using an SMTP plugin, it will make your life easier, trust me!