How To Use The SMTP Server To Send WordPress Emails

Posted on 11/04/2018 by Neil Skoglund

Are you having trouble receiving or sending emails from your WordPress site? One solution for that is to use a third-party email service, however, these services will cost you extra money. In this article, we will show you how to use an SMTP server to send WordPress emails instead.

 

Using Email Accounts With Your Host

Most WordPress hosting providers offer email services for each domain you host with them. This means you can create email accounts with your own domain name like "yourname@yoursite.com" for example.

First, you will need to create an email account. For the sake of this example, we will show you how to create an email account in cPanel. Your hosting service provider may use some other account management system, but the basic process is the same on most hosting services.

Log into your hosting account, and click on email accounts under the mail section.

This will show you a simple form where you need to fill out the information required to create your email account. Since we will be using this account to send WordPress emails, we recommend that you create an email account like wordpress@example.com. Make sure to replace example.com with your own domain name.

After creating your email account, you are now ready to use it in WordPress. But before you do that, you will need the following information from your hosting service provider.

  1. SMTP Host for your email address.
  2. SMTP Port for secure login.

You can check the support section on your host’s website for this information. Most likely there will be an article providing this information. If you don’t find it, then you should contact the hosting support to request this information.

 

Using Your Branded Email Address In WordPress

You will now need to install and activate the WP Mail SMTP plugin. Upon activation, you need to visit "Settings » Email" to configure the plugin settings.

First, you need to enter the email address you just created. After that you can add a from name, this will be used as the sender name. If you do not add a from name, then the plugin will use the default WordPress.

Next, you need to choose the mailer. Go ahead and click on the ‘Other SMTP’ option to select it.

After that, you need to check the box next to ‘Return-Path’ option. This option sets the return path to match the sender email address. If you leave it unchecked, bounced messages and non-delivery receipts will be lost.

Next, you need to set up SMTP options.

First, you need to enter your SMTP host and port. You can obtain this information from your hosting provider. Typically, SMTP host is mail.yourdomain.com (replace yourdomain.com with your own domain name). 

Next, you need to choose encryption. Most WordPress hosting companies support SSL and TLS. We recommend using TLS option when available.

After that turn on the authentication toggle and provide your SMTP username and password. Normally, your email address is also your SMTP username.

Your password is stored as plain text, which is not safe. Don’t worry, we will show you how to make more secure later in this article.

Don’t forget to click on the save settings button to store your changes.

 

Testing Your SMTP Settings

Now that you have set up WP Mail SMTP to send emails, let’s test if everything is working fine. On the plugin’s settings page, click on the ‘Email Test’ tab.

You need to provide an email address where you would like to receive a test email. This could be any valid email address that you can access. After that click on the Send Email button to continue.

WP Mail SMTP will now send an email message using the SMTP settings you entered earlier. You will see a success message when email is sent successfully.

 

Securing Your Email Password

You may need to enter your email account password in WP MAIL SMTP settings. This password is normally stored as plain text which is unsafe.

However, the plugin also provides you with an option to make it more secure. To do that, you will need to add some code to your wp-config.php file. 

First, you will need to connect to your website using an FTP client or File Manager app in cPanel. Once connected, you will find your wp-config.php file in the root folder of your website.

You can edit this file using any plain text editor like Notepad or TextEdit.

Locate the line that says ‘That’s all, stop editing! Happy blogging’ and add the following code just before it.

1
2
define( 'WPMS_ON', true );
define( 'WPMS_SMTP_PASS', 'your_password' );

Don’t forget to replace ‘your_password’ with your actual SMTP password. After that, save and upload your wp-config.php file back to the server.

You can now visit your WordPress admin area and go to the "Settings » WP Mail SMTP" page. Scroll down to the SMTP options section and you will see that the password field is now disabled.

 

*Please note that we block external SMTP as 90% of sites don't use it so please contact us to allow external SMTP on your account.

 

If you enjoyed this article, visit our Facebook and follow us on Twitter for more WordPress related content from our Blog

 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© Copyright 2019 FreshSites Limited. Registered in England and Wales no. 7812509
Website Design by Pyxal
How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites How To Use The SMTP Server To Send WordPress Emails | FreshSites