Table of Contents
By default, WordPress uses PHP SendMail function to send emails from WordPress when there is new user registration, new comment, comment moderation request and so on.
But some hosts don’t allow Sendmail function and many hosts put a limitation to how much mails to be sent per day / per hour/ per second and this can be bad if your site has a lot of members in it.
In that case, using a third-party SMTP (Simple Mail Transfer Protocol ) could be very helpful, so that you can send essential emails out from WordPress without any issue.
Many premium STMP providers offer click tracking and advanced stats for the email send through their SMTP service.
To name a few, here are some popular premium SMTP providers Sendgrid (My Choice and has a free plan), Mandrill, Mailjet, Mailgun.
Or you can use your google account to send emails using Google’s SMTP, I will specify how to use Google SMTP at the end of the post.
First, let’s see how to use SMTP mailing in WordPress.
How to use SMTP Mailing in WordPress?
Choose your SMTP service
Here choose a suitable SMTP provider according to your needs by comparing their plans and pricing, or if you are just starting out then it is better to use a free service like Google SMTP or Sendgrid.
Signup for the Service and Get credentials
Now after register for an SMTP service, they will provide some configuration information on using their SMTP, these are important.
You will need to get details on SMTP Host, SSL or TLS Encryption, SMTP Port, SMTP Authentication details.
Install the WordPress Plugin
If you have all these details then install and activate the Easy WP SMTP plugin (See our guide on How to properly install a plugin in WordPress).
Configuration Easy WP SMTP plugin
- Navigate to Settings > Easy WP SMTP.
- Enter your sending email in From Email Address; here you should give the email address that will be shown to the email recipient. All emails sent from WordPress will use this unless configured separately on other plugins.
- Now fill the From Name field with the name of your site or whatever that you want to show to the recipient.
- In the SMTP Host field use the host details provided by your SMTP provider, similarly use the details provided by the SMTP provider in Type of Encryption and SMTP Port.
- SMTP Ports could be 465 for SSL, 587 for TSL or may differ according to the provider.
- SMTP authentication is required for most providers and it may be your username and password with the SMTP provider. This should be inquired from your SMTP provider.
- After completing all this, click on Save Changes.
Testing And Debugging
Here you can test if the SMTP configuration settings you have provided by sending an email to any email address, like in the screenshot below
If everything is perfect and working then the email will be sent and it will display a success message.
Now, this is how you can setup SMTP function in WordPress, now let’s see how to use Google’s SMTP settings.
Using Google’s SMTP
As I mentioned earlier you can also use Gmail for SMTP Mailing in WordPress. This feature is provided by Gmail or Google Mail use the below setting to send emails using Gmail SMTP:
- From Email: use what you prefer i.e. contact[at]wpdeve.com
- From Name: use what you prefer. i.e. WPDevE.
- SMTP Host: smtp.gmail.com
- Type of Encryption: TLS or SSL (It is better to try TLS as it works in most case)
- SMTP Port: 465 or 587
- SMTP Authentication: Yes
- SMTP Username: your Gmail email address i.e. yourname[at]gmail.com
- SMTP Password: your Gmail/Google password
Now, test your configuration and check whether you can use SMTP Mailing in WordPress with Gmail or not.
This wraps up the guide on how to use SMTP mailing in WordPress, leave a comment if you are facing any problems regarding this.