Have Your WordPress Send Email Reliably

Have Your WordPress Send Email Reliably

If your WordPress causes trouble sending and receiving email, read on. We have a solution for you. Of course, you can use special third party services like Mandrill for this job, however, in contrast to the following solution, they aren’t free. In this article, we’ll show you an option that doesn’t cost any (additional) money at all while still being very effective. You just use one of your email addresses that come with your hosting package or your server. We’ll show you how to set up an SMTP server for the delivery of your WordPress email.

Have Your WordPress Send Email Reliably

The Problem With WordPress Email

WordPress uses the mail function of PHP to send its internal email. But often, this is the reason for the problem. As many shared hosting providers don’t have this feature configured correctly, and some don’t have it activated at all. This poses the issue that your WordPress is not able to send email properly. New users, for example, don’t receive passwords, and you aren’t informed about comments on your blog. Of course, you can use a third-party service like Mandrill or Sendgrid. However, these services aren’t free and can get rather expensive with many users or user accounts.

But don’t be afraid, there is a solution to the problem. You can use a service for that you already pay either way.

Using One of Your Email Addresses for WordPress

With every shared hosting package or server, you receive a domain alongside the package, and this allows you to create own email addresses. This is rather easy and will solve the WordPress issue. An email address looks like this:

yourname@yoururl.tld

The creation of an email address works differently for every provider, which is why I’ll show you how it works using my provider hostNET.de in the easyTECC4 administration panel as an example. We strongly recommend using an email address like wordpress@yoururl.de.

Creating an Email Address

Neue E-Mail-Adresse anlegen Teil 1

Neue E-Mail-Adresse anlegen Teil 2

In the lower screenshot, I enter the email address I want to use, decide on a password and the mail quota (storage size of the mailbox), and click save. Now, I’ll receive the access information and can set up my email address in WordPress. The SMTP port is necessary here for a safe login. Typically, the Port 587 is used. For you, this can be a different one, which you should look up in your system’s support area. If in doubt, ask your hosting provider.

Important: Write down the access information and the server address, to not forget them.

How to Use Your Email Address for WordPress

We will be using the free plugin WP Mail SMTP to ease the process. Unfortunately, there are two plugins identically named WP Mail SMTP. Make sure you download the correct one (view screenshot).

Richtige-Version-installieren

Now download WP Mail SMTP (easy SMTP), install, and activate it. Subsequently, navigate to the plugin settings under »Settings => Email« and apply our parameters according to the following pattern:

Clicking it Opens the Graphic in Higher Resolution
Die Optionen

Entering Credentials

First, you need to enter your email address. Then, enter the sender name in the field “From Name“. The option “Send all WordPress email from SMTP” has to be active. Enter the SMTP host in the “SMTP Options” area. This is the server address from which the email is sent. The field “Use SSL encryption” needs to be ticked for access information and transfer to be encrypted. For “Authentification“, you need to click “Yes: Use SMTP authentication“. Below that, you have to enter your username, and your email address’ password. Then click the button »apply changes«.

Checking the Settings With a Test Email

test

Now enter an email address, a subject, and the message in the field “Send a Test Email“. Click »Send Test«. This generates a test email. If you receive the email, you’ve accomplished that mission and the delivery of email through your server works. If not, you’ll receive an error message.

Troubleshooting Email Problems With WordPress

The most common reason the plugin is unable to send email is an incorrectly entered SMTP host (server address for delivery), or a wrong port. Make sure you’re using the correct port. When in doubt, ask the support of your hosting provider. SSL works for most providers, but unfortunately, sometimes it doesn’t. Then switch from “Type of Encryption” to “None” and try again.

Conclusion

With a bit of thought and without any additional costs, we’ve solved the problem, and our WordPress now sends important email reliably. The poor delivery via PHP’s mail function has been avoided, and email is now sent directly via your hosting provider.

(dpe)

Andreas Hecht

Andreas Hecht is a journalist and specialist for WordPress and WordPress Security. He roams the web since its inception. He has published an ebook on WordPress Security, which you might want to take a look at.

Leave a Reply

1 Comment on "Have Your WordPress Send Email Reliably"

Notify of
avatar
Sort by:   newest | oldest | most voted
Carlos A.
Guest

Now I understand why Contact Form 7 is validating email address containing the domain as the sending email. If you setup the email as user@domain.com (same as website address) the form will be validated if not it will go out as an error.

Maybe it’s the same as to increase reliability in the sending.

Thanks for this will probably start implementing on our clients sites.

#freeAlwaysWelcome

wpDiscuz