Question

Wordpress Won't Send Contact Form Emails

Hi,

I’ve only just noticed that a few of my Wordpress sites won’t send the emails from the Contact form. I am using a plugin called Contact Form 7.

I presume it is because Digital Ocean don’t install a SMTP server in the Wordpress 1 click installation.

Does anyone know how i could get these to work. Please bare in mind i am far from a server engineer :-) Thanks in advance for your help.

Subscribe
Share

are you talking about the digital ocean droplet console? Nothing comes up, screenshot: https://www.dropbox.com/s/0jag077zdax57zi/Screenshot 2017-09-08 14.04.16.png?dl=0

Hi @fit, sorry to hear that. What’s the output of nc -z smtp.gmail.com 25? If port 25 is blocked, postfix or any other mail server won’t be able to connect to other mail servers to send email, so you need to make sure that port 25 isn’t blocked on your Droplet.

not a server admin/pro – I’m a front end boy. I’m not understanding @kamaln7’s instruction unfortunately. I noticed my contact form 7 (the plugin) wasn’t able to send emails. I’ve exhausted myself with research and it looks like the server might be the issue. How can I get some help? I went ahead and typed “sudo service postfix restart” in the console, should this do it? How long does this usually take to function. Thanks!


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.

Bloody DigitalOcean not say and and Bloody DigitalOcean interface not NOTICE that sendmail is always blocked, and you need to get permission with support agent. ;-)

Bloody DigitalOcean not say and and Bloody DigitalOcean interface not NOTICE that sendmail is always blocked, and you need to get permission with support agent. ;-)

Hello there,

You can use a SMTP plugin for WordPress like EasySMTP. I’ve found this plugin really useful and quite simple to configure.

I’ll also recommend using a third-party mail provider like SendGrid to send your emails. You can also check this tutorial on: Why You May Not Want To Run Your Own Mail Server

https://www.digitalocean.com/community/tutorials/why-you-may-not-want-to-run-your-own-mail-server

Hope that this helps!

SOLUTION!

The SMTP ports are blocked to avoid spam according to DO, the solution I found at least in wordpress is to create a free account ZOHOMAIL and then do all the DNS records configuration,

https://www.digitalocean.com/community/tutorials/how-to-set-up-zoho-mail-with-a-custom-domain-managed-by-digitalocean-dns

then I installed the WP SMTP plugin in Wordpress

https://cl.wordpress.org/plugins/wp-smtp/

I entered the SMTP configuration for Zoho Mail - SSL

https://www.zoho.com /es-xl/mail/help/zoho-smtp.html

, I ran a test and solved!

@kamaln7

Thank you for your reply.

Postfix was not installed, this is output when I installed it:

The following NEW packages will be installed: postfix 0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.

Is there something additional that i need to select on the one click install?

All Wordpress one-click droplets have Postfix, a mail server/MTA, installed. You can verify that it’s running by looking at the output of:

sudo ps wwaux | grep postfix | grep -v grep

Try running the following command on your droplet:

nc -z smtp.gmail.com 25

If it does not output the following, it’s possible that SMTP is blocked on your droplet. In that case, please file a support ticket and the support team will take care of it. Thanks!

Connection to smtp.gmail.com port 25 [tcp/smtp] succeeded!