How to enable email on droplet for WordPress Webform

Posted August 12, 2021 220 views

Hello! This is my very first community post.

I have a droplet with multiple domains pointing to different WordPress sites. I’m trying to get the webforms working for one of the domains however, I’m not receiving any of the submissions.

I was following this tutorial “How To Install and Configure Postfix as a Send-Only SMTP Server

As suggested by the prerequisite note, I’ve updated the droplet name and the hostname to match the domain and checked the PTR record to make sure the hostname changed.

Here are some of the steps I’ve already taken:

  • Set up TXT & MX records. I can send and receive emails with the domain.
  • Updated droplet name and hostname to match as suggested by this tutorial
  • Updated ufw to open port 25 (SMTP)

Do I really need to install postfix? – I already tried once, failed, couldn’t troubleshoot so I reverted to a backup of my droplet from a week ago. I thought that there was a native PHP mail function that I could use?

Thanks for your help and support!


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.

Submit an Answer
1 answer

Hello, @danieldidthat

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’s SMTP service. 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.

Hope that this helps!