Question

How can i fix NGINX Wordpress not sending emails?

Posted September 20, 2020 198 views
NginxWordPressEmail

Hello, i just installed wordpress on VPS following your tutorials and now i don’t know how to configure it to be able to send emails from wordpress. I tested it with Check Email plugin and nothing. Do i need a separate email service? can i somehow activate something in the nginx server or with any php function? I’m newbie in the VPS world and need your help please.

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.

×
1 answer

Hi @hcmendez,

WordPress cannot send emails by itself. It has to rely on an email server to do the job. You can set up an SMTP email server or use a third-party service. Generally, you will install a WordPress plugin and configure it with SMTP information. After that, WordPress can start sending emails.

However, setting up your own email server is not a good idea. Because most likely, your email will go straight to the recipient’s junk/spam box. Please use a reputable third party service that supports SMTP. An internet search gives me some services like Sendinblue, Mailjet, SendGrid, etc. (you can search for more results by yourself). These services all offer a free plan with some limitations, but they support SMTP and include WordPress plugins. Refer to the following plugin pages for how to integrate them into your website: Sendinblue, Mailjet, SendGrid.

If you want to set up an email server yourself, follow the tutorial How To Install and Configure Postfix as a Send-Only SMTP Server on Ubuntu 20.04. Once you have an SMTP server, install an SMTP plugin for WordPress such as WP Mail SMTP and configure it with the SMTP information.

by finid
by Savic
Postfix is a mail transfer agent (MTA), an application used to send and receive email. It can be configured so that it can be used to send emails by local application only. In this tutorial, you'll install and configure Postfix on Ubuntu 20.04 as a send-only SMTP server. You'll also request free TLS certificates from Let's Encrypt for your domain and encrypt the outbound emails using them.
  • Thanks for your answer. I think i will stay with external email services for now. I’ll dig in to that.

  • Yes I also like Sendgrid but I think no free plan anymore and their shared IP address is poor reputation sometimes unless you will upgrade to paid account really. I don’t blame them but just to let anyone know if you have critical emails.

Submit an Answer