PHPMatters Help You Better Hosting Your PHP-based Sites
How to Send WordPress Emails with SMTP Server

How to Send WordPress Emails with SMTP Server

The email plays a vital role for the communication between you and your readers. With it, you can inform them of the newly-released blog posts and newly-launched activities on your site. Also, people can contact you for content feedbacks, guest post submission, link exchanges and many more. In this case, once you encounter the issue of email sending or receiving, it can be quite annoying.

Previously, we have introduced the method of using PHPMailer to avoid this issue. This time, we’d like to tell you how to send WordPress emails using SMTP server from both your web hosts and some third-party email service providers.

How to Send WordPress Emails with SMTP Server

To be frank, this is not a difficult thing for the majority of WordPress users. You simply need to leverage your control panel and the WordPress plugin named as WP Mail SMTP.

Step 1 – Create the Email Account

To start the process, you firstly need to create a new email account you prefer with the control panel offered by your web host. In the following, we simply take the widely-used cPanel control panel as an example.

After logging into your cPanel, you can find the icon of Email Accounts from the Email area. Simply click it, and fill out all the information in the following screenshot.

As all the aspects are set up properly, you can click the Create Account button to get your new email account.

Create Email

Step 2 – Get the SMTP Host and SMTP Port

Now, you need to get two things for the successful utilization of SMTP for email sending. One is the host name of SMTP for your email, and the other is the SMTP port for the secured login.

If you decide to use the SMTP server offered by your web host, you can contact their support team to ask for the information. Some web hosts even showcase these two aspects in their WIKI page or knowledge base.

On the other hand, if you choose some popular SMTP servers offered by Gmail, Yahoo and Hotmail, you can refer to the following listed information directly. If you use none of them, you need to check the required information from search engines.

  • Host Name – for Gmail, for Yahoo and for Hotmail.
  • Port Number – 587 for Gmail, 465 for Yahoo and 587 for Hotmail.

Step 3 – Install and Configure the WP Mail SMTP Plugin

After installing and activating this plugin in your WordPress dashboard, you can click the newly added Email button from the drop-down menu of Settings. After filling out all the required information, you can start sending emails at once.

First of all, you need to decide the basic settings of this plugin, which include the “From Email Address” and the “From Name”. The former one is the email address you have created in the step 1. As for the latter one, it is recommended to use your website name. Note that if you leave this option in blank, then the default name will be WordPress.

Besides, as for the Mailer, you need to choose the option of sending all the WordPress emails using SMTP.

Basic Email Settings

Next, you should configure the SMTP options. Here, you firstly need to enter the SMTP host name and port number you have gained in the step 2 correctly. As for the Encryption, it depends on your website configuration. However, you need to know that the port numbers for SSL encryption and TLS encryption might be different. For instance, if you use Gmail SMTP, you need to enter 587 as the port number for TLS encryption and the 465 for SSL encryption.

In addition, do not forget to click the Yes box in the Authentication section for the activation of SMTP authentication.

Lastly, you need to enter your email address and corresponding password into the Username and Password blank space.

SMTP Settings

Now, click the Save Changes button.

Step 4 – Test Your Email

This plugin is great that allows you to send a test email. You only need to type an email address and click the Send Test button. If your recipient gets the testing message, you can start sending emails using SMTP without any worry.

Test Your Email