Report this

What is the reason for this report?

Wordpress one click install on DO- email not working

Posted on February 24, 2021

I am trying to get Wordpress to send emails and have gone through the following tutorial: https://www.postmm.com/web-development/how-to-set-up-wordpress-on-digital-ocean/

and no emails are being sent from my droplet.

I pasted this command: nc -vz smpt.gmail.com 25

and it hangs and gives me: nc: connect to smpt.gmail.com port 25 (tcp) failed connection timed out and another: …Network is unreachable

Any advice on this matter would be much appreciated. thanks



This textbox defaults to using Markdown to format your 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.

Hello,

What I could suggest here is using an SMTP plugin for your WordPress site.

That way you will be able to specify an SMTP server with authentication which your emails would be going through. You could for example use SendGrid SMTP settings. This would drastically increase the delivery rate of your emails as well compared to using plain PHP mail.

I’ve been using this plugin for a while now and it works very well: Easy WP SMTP.

Also sometimes port 25 will be blocked for droplets on new accounts. This is something we have been doing to reduce spam on our network. Please do not think that we are accusing you of sending spam, it is more that we simply cannot accurately determine who is going to send it.

Stopping spam is a constant fight, so we have implemented some restrictions on newer accounts. To qualify for the ability to send out email, we do require accounts to wait 60 days before we can look into removing the restriction. Once your account has reached 60 days of stable use, please do reach back out to us so we can look into this for you.

Hope that helps! Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.