How to Send WordPress Emails Using SMTP?
Are you facing any difficulty in getting and sending emails from your WordPress based website? One of the best solution for that is utilize third part email solution. Although, these email services will cost you some extra amount of money. In this post we will explain how to send WordPress email using SMTP server on WordPress hosting account.
The Issue with WordPress Emails
WordPress CMS utilizes email function in PHP to send emails. Most if the shared WordPress hosting service providers do not own this function deployed properly, or they simple disabled it from your site fully to avoid any kind of misuse. In this case it causes your WordPress based emails to not be dispatched.
The another choice is to utilize third party email solution to send emails. You can make use of the service such as Google apps for work.
What if we will say there is one more choice and most probably you are already spending money on it?
Using Email Accounts by Your Web Host
In the first place you should make an email account. For this case, we will demonstrate to you proper methodologies to make an email account in cPanel control panel. Your WordPress hosting specialist may utilize some other control panel tool, however the essential procedure is the same on maximum hosting services.
Sign into your WordPress hosting account, and hit email accounts right after the mail section.
Once you hit the Email accounts option, this will display you a simple form in which you need to fill the required details so that you can create your email account.
After making an email account for your domain name, your email is ready to use for WordPress emails. Although before doing this, you need to have the given below details from your WordPress hosting provider:
SMTP Host for your email account.
SMTP Port number for secure login access.
You can ask these details to host host by contacting them. Most probably there will some article on there website related to this. In case you do not find any article about it, feel free to contact the technical support team of your web hosting provider and ask for this information.
Utilizing Your Branded Email Address in WordPress
Once you have all the information, you will need to install the WP Mail SMTP plugin and then activate it.
After activation you will have to visit setting > Email to configure the settings of plugin.
In the first column you will have to enter the email address you are going to use for it and then you will have to enter a from name, this name will be used as a sender name.
In case you don’t wish to use a from name, then this plugin will utilize the default WordPress.
On next step, you will need to select the mail. Move forward and hit the Other SMTP option to choose it.
Once you are done with above steps, you will have to check the box available next to Return Path alternative. This alternative sets the return path to suit the sender email id. In case you do not tick this option. Bounced email messages as well as other non-delivery slips will be missing.
Next, you Will have to to set up SMTP options.
First of all you will have to enter your SMTP host and port number. You can easily get these details from your WordPress web host.
Now you will have to select encryption. Many WordPress Hosting providers support SSL as well as TLS. We suggest utilizing TLS if available.
Once you are done with above, switch on the authentication toggle and give your SMTP username and password details. Generally your email id is your SMTP username.
Do not forget to hit the save setting option to apply your changes.
Testing Your SMTP Settings
Now that your WP email SMTP is set up to send email messages, you should test if each and everything is functioning properly or not. Go to the plugin’s setting page and hit the Email test option.
Now you have to give an email id in which you wish to get test emails. You can give any valid email id which you are able to access. Once done hit Send Email button to move to next step.
Once you are done, WP Mail SMTP server will now send email utilizing the SMTP settings you submitted in the previously. Once test mail sent successfully, you will see a confirmation message stating email sent successfully.
Protect the Password of Your Email
You have to enter the email account password in WP MAIL SMTP configurations. Generally your password will be stored in a plain text which is no protected.
Although the plugin too give you a choice to make is highly secure. In order to perform this, you need to put few lines of code to your wp-config.php file
First of all you have to connect to your web page using FTP client or login to cPanel and go to file manager option. Once you are done, search for wp-config.php in the root folder of your web page.
No you will have to edit this file utilizing any text editor or notepad.
Search for the like that says, That’s all, stop editing! Happy blogging and add the code given below just before it.
define( 'WPMS_ON', true );
define( 'WPMS_SMTP_PASS', 'your_password' );
Note: Do not forget to change “your_password” with your real SMTP password. Now save and upload the wp-config.php file to the root folder of your domain.
Once you done with the above steps, go to admin area of your WordPress, locate to Settings-> WP MAIl SMTP page. Scroll down to the SMTP choices area and now you will find password field is disabled.
Troubleshooting WordPress Email Related Issues
One of the well-known cause of errors while sending emails using SMTP is wrong SMTP host or port number. Ensure that you are putting the exact host name and port number provided by your WordPress Hosting provider.
Also ensure that you have selected the right encryption type. Normally SSL works fine on maximum platforms, but we suggest you to check with your web hosting company in case you are getting an error message.