Published on January 16, 2018 by WPBeginner

Having trouble sending and receiving emails from your WordPress site? We’ve helped many users solve this error easily and will walk you through how in this video.

The easy way to solve this is by sending emails from WordPress using the Gmail SMTP server. With this video we will show you how to send email in WordPress using the Gmail SMTP server.

In this tutorial, we will walk you through:

– How to install the Gmail SMTP plugin
– How to add the required settings
– How to set up the Google API
— How to add your credentials
– How to test emails sent from your site
– How to use Gmail SMTP for a second method

By default WordPress uses PHP to send emails which can cause them to be flagged for spam, the simplest method to prevent this would be to use SMTP.

We will be using Gmail for the SMTP which will require you to create an application at the Google Developers Console website:

www.google.com/accounts/Logout?continue=https://console.developers.google.com/start/api?id=gmail

What we will need to create the API is the Authorized redirect URI found in the plugin settings and with that we will be able to add the final three required settings for the plugin:

1. The client ID
2. The client secret
3. Click the authorize emails using your Google account button

If you do not want to use this method there is a less secure method using SMTP without the API that we will walk you through.

Text version of this tutorial
www.wpbeginner.com/plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Check us out on Facebook
www.facebook.com/wpbeginner

Follow us on Twitter
twitter.com/wpbeginner

Checkout our website for more WordPress Tutorials
www.wpbeginner.com

Leave a Reply

68 Comments on "How to Send Email in WordPress using the Gmail SMTP Server"

Notify of
avatar

DestructiveBurn
Guest
DestructiveBurn
6 months 12 days ago

Well, that's not what I wanted. I wanted something that overrides the email system that godaddy makes you pay a pile of money for. All I want was something for woocommerce so I and the customer get the email.

Roy Digital
Guest
Roy Digital
6 months 18 days ago

I am getting an error while test email"There was a problem while sending a test email. Related debugging output is shown below:"What is the solution to this?

Nedley Meyers
Guest
Nedley Meyers
3 months 29 days ago

I tried this but get this error when I go to gmail: The setting you are looking for is not available for your account.

Jaydeep Goswami
Guest
Jaydeep Goswami
6 months 11 days ago
Password Solution for Second Method : I too faced the same issue. But resolved in this way.If your Gmail Account is using 2-Step Verification than Gmail ID Password won't work. You have to generate the App Password specially for this.Here is the link to generate the App Password which can be used in the second method. –>> security.google.com/settings/security/apppasswords Login with Gmail ID Step 1. Select App as "Mail". Step 2. Select Device as "Other (Custome Name)".Step 3. Give it any name and Generate. That's it. You'll get a password in popup. copy and paste it in SMTP Password Field in… Read more »
WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
6 months 18 days ago

It would depend on what the debuging output says, if you reach out to the plugin's support with that information they should be able to help find the cause and have your emails send correctly 🙂

Ali Wong
Guest
Ali Wong
6 months 20 days ago

Kinzang

talehhasan
Guest
talehhasan
6 months 27 days ago

Hello. I did ALLOW after WP sequence. Later this was reported.Please help me. Not Acceptable!An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

talehhasan
Guest
talehhasan
6 months 27 days ago

Thank you! Nice TUT

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
6 months 27 days ago

That error is normally caused by your hosting server blocking something required by the plugin with Mod_security. If you reach out to your host they should be able to help unblock the plugin.

Amine Belgounche
Guest
Amine Belgounche
7 months 2 days ago

Is there a limit to the mail that I can send?

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
7 months 1 day ago
First Last
Guest
First Last
7 months 2 days ago

Do you have to have a Google account in order to use GMAIL.

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
7 months 1 day ago

For the moment yes

Gary Lum
Guest
Gary Lum
7 months 2 days ago

Can anyone share with me an example of when I would want to send an e-mail from my WordPress site rather than from my e-mail platform? Thanks.

Gary Lum
Guest
Gary Lum
7 months 1 day ago

Ah, that makes sense now. Thank you.

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
7 months 1 day ago

For password reset emails as one but this guide is also for those who also may not have an email platform just yet

Holistic Health & Living
Guest
Holistic Health & Living
7 months 2 days ago

Is it possible to use this program with my own blog email accounts and not just Gmail?

WPBeginner - WordPress Tutorials
Guest
WPBeginner - WordPress Tutorials
7 months 1 day ago

You would need to find a different plugin as this one is designed specifically for gmail

archersfriend
Guest
archersfriend
7 months 2 days ago

Very Complicated. Don't think is is worth the effort, too many ways to SCREW UP.

Techipulse
Guest
Techipulse
7 months 2 days ago

archersfriend not as difficult as you think..Just go for the second method instead, if that the case

wpDiscuz