How to set WordPress to send email?

Hello, I have moved Wordpress to Linode from shared hosting, and I set up the server with Ubuntu 16.04 with Apache, PHP 7.0.

Before I'm moving, Wordpress send email for notification or password reset, etc. But after moving, mailing has stopped. I think I have trouble with mail of PHP, or sendmail, I guess. Do you have any ideas to solve the problem?

3 Replies

I probably won't be much help, because I think servers should use CentOS (proper linux server) instead of Ubuntu (desktop-like linux). But just in case, check to see if there is an MTA installed, like postfix or exim. Wordpress usually posts the email via the local MTA, which does the actual transport of the email. If there is, then check for permission restrictions, like SELinux (if that even exists in Ubuntu, not sure).

Also, you mention that you transferred from shared hosting, so check to see if you have any settings relevant to your old hosting, that don't match with the new.

Thanks, I'll check the difference. Appreciated for your advice.

Ubuntu is a perfectly fine server OS. As noted, you probably need to install and configure a Mail Transfer Agent. I tend to recommend Postfix as it is reasonably common, secure, and straightforward to set up. While the previous link gives basic info, this guide walks you through things step by step if you need more guidance.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct