Are you looking to cut down on spam emails from your WordPress site, or how to send emails via Gmail or Google Apps from your website? Take a look at the WP Mail SMTP plugin. It forces the WordPress wp_mail() function to use SMTP instead of the PHP mail() function. In our WP Mail SMTP review, you’ll find out how this plugin can help you send emails from your WordPress site on your own terms.
How the wp_mail() Function Works in WordPress
As a WordPress user, you receive a lot of mail from your WordPress website. Whenever a reader posts a comment, a post gets a pingback, or an update is ready for your approval, WordPress automatically sends an email to notify you. You might get notification emails from your themes and plugins as well.
Behind the scenes, these emails are all sent using a built-in WordPress function: wp_mail().
The wp_mail() function uses the PHP function mail() to send emails from your website.
The Problem With the mail() Function
The mail() function is a built-in, default PHP function that enables sending emails.
It’s a very simple, easy to use function, but can actually be a big problem.
The mail() function is easy for spammers to take advantage of, hijacking it to send hundreds of emails through your website.
In fact, it’s so notoriously hackable that some hosts have even disabled the use of the mail() function altogether.
Why You Need the WP Mail SMTP Plugin
The WP Mail SMTP plugin works by bypassing the WordPress wp_mail() function and forcing it to use your SMTP settings. This means that you can set it to use whatever email you want, just by entering your SMTP options in the dashboard.
Because of the mail() function’s vulnerability to hijacking, the WP Mail SMTP plugin can help keep your site safe. If a lot of spam emails are being sent from your website, you could get in trouble with your hosting company or get your site blacklisted.
WP Mail SMTP can also come in handy when:
- your hosting company has disabled the mail() function and WordPress can’t send email
- your web host’s settings are interfering with the delivery of mail from your WordPress site
- emails sent from your WordPress website always end up in the spam folder of recipients
- you want to set up WordPress to send email via Gmail or Google Apps (more on that below)
- messages sent via your WordPress contact forms never reach your inbox
How to Set Up WP Mail SMTP
After activating the plugin, head over to Settings » WP Mail SMTP. You’ll be asked to specify your from-email and name.
Then, you’ll be prompted to choose a mailer option.
Unlike other SMTP plugins, WP Mail SMTP allows you to set up SMTP on your site using 4 different mailer options:
- Gmail or G Suite
- Other SMTP
Gmail SMTP allows you to use your Gmail or G Suite account for SMTP emails. The WP Mail SMTP plugin uses OAuth to authenticate your Google account, keeping your login information 100% secure.
Mailgun is a popular SMTP service provider that allows you to send large quantities of emails. WP Mail SMTP offers native integration with Mailgun.
Mailgun works with any email account and is highly secure but requires a subscription.
SendGrid is yet another SMTP service provider, which is trusted by over 58,000 paying customers. WP Mail SMTP offers native integration with SendGrid as well.
Just like Mailgun, SendGrid also works with any email account and is highly secure but requires a subscription.
Other SMTP works with all major email services, including Gmail, Yahoo, Outlook, Microsoft Live, etc. With this option, you’ll have to insert your password in your wp-config.php file, so it’s not visible in your WordPress settings.
Though Other SMTP is the least secure option, it could be the right choice for you if you need a solution that doesn’t require a third-party subscription.
You can send a test email by clicking the Email Test tab. If anything goes wrong with your test email, the plugin will give you a detailed error message you can use for troubleshooting.
Support and Documentation
WP Mail SMTP is one of the most popular plugins in the WordPress.org directory, and is rated very highly.
After being acquired by WPForms, it’s frequently updated and support is offered in a timely manner.
Documentation is limited to basic troubleshooting for the most common errors. This plugin seems to be best suited for more tech-savvy users who’re already familiar with email settings.
Our Verdict on Using WP Mail SMTP on Your Site
With over a million installations on WordPress sites around the web, and an average 4.6 rating on the WordPress.org plugin directory, WP Mail SMTP is a good choice for most users who need to send mail with SMTP from their WordPress site.
We believe that this plugin is very helpful for any user having problems with mail delivery from their WordPress site.
We give WP Mail SMTP 5 out of 5 stars. Here’s the breakdown of our review scores:
What’s My SEO Score?
Enter the URL of any landing page or blog article and see how optimized it is for one keyword or phrase.
- How to Properly Create a Wholesale Order Form in WordPress - April 30, 2020
- How to Create a “Google Forms Style” Form in WordPress - April 29, 2020
- How to Create a Full-Screen Welcome Mat Optin Form in WordPress - April 28, 2020