WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to Send Email in WordPress using the Gmail SMTP Server

How to Send Email in WordPress using the Gmail SMTP Server

Last updated on June 11th, 2020 by Editorial Staff
1.6k Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Send Email in WordPress using the Gmail SMTP Server

Are you having trouble sending emails from your WordPress site?

One easy way to solve this is by sending WordPress emails using the Gmail SMTP server.

In this article, we will show you how to send emails from your WordPress site using the Gmail SMTP server.

Using Gmail SMTP server in WordPress

Why and When You Need Gmail SMTP Server for WordPress Emails

Your WordPress site sends emails to notify you of new user registration, lost password reset, automatic updates, and even notifications from your contact forms.

By default, WordPress uses the PHP mail function to send out email notifications. However, this function doesn’t work as expected due to a number of reasons.

Most WordPress hosting companies restrict usage of this function to prevent abuse and spam.

Spam filters on popular email service providers check incoming emails to monitor if they are sent from authentic mail servers. Default WordPress emails fail this check and sometimes may not even make it to the spam folder.

SMTP (Simple Mail Transfer Protocol) is the industry standard for sending emails. Unlike the PHP mail function, SMTP uses proper authentication, which increases email deliverability.

Gmail provides SMTP service that you can use to send out emails from your WordPress site. If you just want to send WordPress notification emails to yourself and few users on your site, then Gmail SMTP servers are the best option.

However, if you are planning on sending newsletter emails using WordPress, then you should use a mass emailing service provider, like Sendinblue or Mailgun.

Free vs Paid Gmail SMTP Service for WordPress

You can use your free Gmail account to send out WordPress emails. However, for better deliverability, we recommend using paid G Suite.

With G Suite, you get your own professional branded email address such as (name@yoursite.com).

G Suite requires you to add MX records to your domain name which means that your emails will appear to be coming from your own domain name boosting authenticity and ensuring better deliverability.

We use G Suite for WPBeginner and can honestly say it’s the best.

How to Send Email using Google SMTP Video Tutorial

Subscribe to WPBeginner

If you prefer written instructions, then please continue reading.

How to Send WordPress Emails Using Gmail SMTP Server

If you decided to use G Suite, then you first need to set up your domain to work with Google Apps. We have a step by step tutorial on how to set up a professional email address with G Suite.

The rest of the instructions are the same whether you are using a paid or free Gmail account.

First thing you need to do is install and activate the WP Mail SMTP plugin. For more details, see our step by step guide on how to install a WordPress plugin.

WP Mail SMTP is the best WordPress SMTP plugin on the market. It allows you to easily use any SMTP server to send WordPress emails with higher deliverability.

We recommend buying the paid version called WP Mail SMTP Pro which gives you access to premium support, more mailers, and white-glove set up by one of their experts.

Upon activation, you need to visit Settings » WP Mail SMTP page to configure the plugin settings.

WP Mail SMTP Settings

First, you need to make sure that you use your Gmail email address in the ‘From Email’ field. Next, you need to provide the sender’s name.

WP Mail SMTP plugin offers two ways to connect your WordPress site to the Gmail servers.

The first method uses OAuth Authentication. This is a more secure method to send emails using Gmail servers.

The second method is by entering Gmail SMTP settings manually. This method is not recommended because it is less secure.

That being said, let’s set up WordPress to use Gmail SMTP for sending emails.

Method 1: Setting up Gmail to Send WordPress Emails using OAuth Protocol

This method is recommended for all users. It is more secure and once you set it up, you’ll never have to do that again.

You need to start by selecting Gmail as your mailer and set the return path to be the same as sender.

Select Gmail and set return path

Next, you will see the option to enter your Client ID, Client Secret, and a URL in ‘Authorized redirect URI’ field.

Let’s set up these fields.

Creating an App and Generate API Keys for Gmail

Visit the Google Developers Console website and create a new project.

Create a new Google Developer Console project

If you don’t see the blue button to create a project, then you can also click on select a project drop-down and create a new project.

You’ll be asked to provide a name for your project. Give it a memorable name, so that you can easily recognize it in the future.

Name your project

After that, click on the create button to continue.

Developer console will now create your project and take you to its dashboard. Google offer developers access to many of their APIs and services. You need to enable the APIs that you will be needing for this project.

Enable APIs

Click on Enable APIs and services button to continue.

This will bring you to the APIs library page. Next, you need to type Gmail in the search box to quickly find the Gmail API and click to select it.

Select Gmail API

You will now see an overview of the API and what it can do. Simply click on the ‘Enable’ button to continue.

Enale Gmail API

Now that your API is enabled, the next step is to create credentials that you can use in your WP Mail SMTP plugin settings.

Click on the create credentials button to continue.

Create credentials

On the next screen, you will need to select ‘Web browser JavaScript’ in ‘Where you’ll be calling the API from’ field. After that click on the ‘User Data’ option.

API credentials step 1

To continue, click on the ‘What credentials do I need?’ button.

You will now be asked to provide a name for your OAuth client name. You can enter ‘WP Mail SMTP’ here.

API Credentials step 2

Under JavaScript origins field, you need to add your website’s domain name. Next, you need to copy and paste the authorized redirect URL from WP Mail SMTP plugin settings.

After that, click on the ‘Create client ID’ button to continue.

Next, you need to enter a name for OAuth consent screen. You can put the plugin’s name here.

Ouath consent screen

After entering the details, click on the continue button and the developer console will show your client ID. You can copy and paste this in the WP Mail SMTP plugin’s settings page. However, you will still need to add your client secret key.

Getting your client ID

Go ahead and click on the Done button to move on.

You will now be taken to your project’s credentials page. On this page, you can see your recently created credentials listed here. You need to click on the edit icon next to your credentials to continue.

Edit credentials

This will bring you to the edit credentials page where you will be able to see your client secret key. You need to copy and paste the key in your plugin’s settings page.

Client secret key

Return back to plugin’s settings page in your WordPress admin area. Now that you have both client ID and client secret keys, you need to click on the save settings button to continue.

Save client credentials in plugin settings

The plugin will now store your settings and reload the page. After that, you need to scroll down to the bottom of the settings page and click on the ‘Allow plugin to send emails using your Google account’ button.

Allow plugin to send emails

This will take you to your account on Google, and you will be asked to give the website permission to send emails on your behalf.

Allow Gmail

Click on the Allow button to give permissions.

After that, you will be redirected back to your website where you will see a success message.

Connected successfully

Method 2: Setting up Gmail SMTP as SMTP Sender

This method allows you to manually connect to Gmail’s SMTP servers to send your WordPress emails.

First, you need to visit Settings » WP Mail SMTP page to configure the plugin settings.

You need to start by providing the Gmail address you want to use in the ‘From Email’ field, and your name in the From ‘Name’ field.

Gmail SMTP

Next, you need to select ‘Other SMTP’ as your mailer and check the box next to return path.

After that, scroll down to the Other SMTP section to configure more settings.

Gmail SMTP settings for WP Mail SMTP plugin

Here is the exact configuration you need to add in the plugin settings:

  • SMTP Host: smtp.gmail.com
  • SMTP Port: 465
  • Encryption: Use SSL encryption
  • Authentication: Turn on authentication
  • Username: Your complete Gmail address, e.g. john.smith@yourdomain.com or john.smith@gmail.com
  • Password: Password of your Gmail account

Once you are done, click on the save changes button to store your settings.

That’s all, you have successfully set up WP Mail SMTP to use Gmail SMTP servers.

Note: If you use method two, please know that it’s less secure because your password is stored in text. You can enhance this by using the constants tip, but we strongly recommend using Method 1.

Testing Your WP Mail SMTP Settings

WP Mail SMTP plugin allows you to test your email settings, so you can make sure that everything is working properly.

You need to visit Settings » WP Mail SMTP page and click on the ‘Email Test’ tab. Simply provide an email address that you can access in the send to field and click on the send email button.

Send test email

You will see a success message. You can now check your inbox to see a message with the subject line ‘WP Mail SMTP: Test Email to…’.

That’s all, you have successfully setup your WordPress site to send emails using Gmail SMTP servers.

Get More With WP Mail SMTP Pro

If you want even more functionality, you should try WP Mail SMTP Pro.

With the Pro version of the plugin, you can connect with:

  • G Suite/Gmail
  • Amazon SES
  • Mailgun
  • Office 365 / Outlook.com
  • SendGrid
  • And more

You also get additional features like email logs, ability to fine-tune / control which notification your WordPress site sends, and more.

Troubleshooting Gmail SMTP Not Working Issues

We have seen users encounter few issues when using Gmail SMTP with certain shared hosting configurations.

Take the following steps to fix the Gmail SMTP issue:

  1. Log in to your cPanel account and create an email account that matches your Google apps email address. This might seem strange because you’re not using your server for emails. This step basically tricks your server into believing that you’re sending the email through the server.
  2. In your cPanel account, go to the MX Records and change the MX routing from automatic to remote. It might be a little tricky to find since each host now has a custom cPanel interface. You need to look for a small link next to MX that says Email Routing: Remote Mail Exchanger.
  3. After that log back into your WordPress site and send a test email.

We hope this article helped you learn how to send email in WordPress using the Gmail SMTP server. You may also want to see our list of the best contact form plugins for WordPress, and our comparison of the best email marketing services for small business.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

1.6k Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

131 Comments

Leave a Reply
  1. Mallory Moore says:
    Jan 13, 2021 at 2:02 pm

    After completing all the steps it re-directed me to my WordPress site but it went to a page that said not found to there was no success msg so I can’t test as it still says unauthorized.

    Reply
    • WPBeginner Support says:
      Jan 14, 2021 at 9:37 am

      For that specific error message, you would want to take a look at our article below:

      https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-401-error-in-wordpress-solutions/

      Reply
  2. Vaskar says:
    Oct 28, 2020 at 4:44 pm

    I want to send newsletters/mail to my website subscribers. I want to send mail to my website subscribers from my gsuite business mail address. Can you suggest to me that what I have to do now?

    Reply
    • WPBeginner Support says:
      Oct 30, 2020 at 9:32 am

      For creating a newsletter, we would recommend taking a look at our article below:

      https://www.wpbeginner.com/beginners-guide/how-to-create-an-email-newsletter/

      Reply
  3. AJ says:
    Sep 3, 2020 at 1:59 pm

    This was a tremendous help! Thank you so much!

    Reply
    • WPBeginner Support says:
      Sep 8, 2020 at 3:36 pm

      Glad you found our content helpful :)

      Reply
  4. Lennon says:
    Aug 10, 2020 at 9:04 pm

    Can we use a forwarding email address to set this up or do we have to have a Gmail account?

    Reply
    • WPBeginner Support says:
      Aug 11, 2020 at 10:51 am

      For other methods, you would want to take a look at our other article below:

      https://www.wpbeginner.com/plugins/how-to-set-up-wp-mail-smtp-with-any-host-ultimate-guide/

      Reply
  5. Peter says:
    Aug 3, 2020 at 4:26 am

    Hi

    When setting up Oauth consent screen, Internal and External options are present. Only external option is available to Gmail users. Is this the correct one to choose?

    Thanks!

    Reply
    • WPBeginner Support says:
      Aug 4, 2020 at 10:39 am

      It sounds like that would be correct, for questions about the plugin we would recommend reaching out to the plugin’s support for assistance

      Reply
  6. Gordon Barker says:
    Jul 27, 2020 at 3:27 am

    No where can I find where to set the email “to field” please could you explain how to set this field?

    Reply
    • WPBeginner Support says:
      Jul 28, 2020 at 9:57 am

      You would want to check with the settings for your form plugin for setting the to location

      Reply
  7. Jairo Paredes says:
    Jun 28, 2020 at 5:47 pm

    Excellent!!!!
    Thanks a lot….

    Reply
    • WPBeginner Support says:
      Jun 30, 2020 at 11:04 am

      You’re welcome :)

      Reply
  8. Ruxandra says:
    Jun 16, 2020 at 11:26 am

    Awesome! Thanks!

    Reply
    • WPBeginner Support says:
      Jun 17, 2020 at 8:44 am

      You’re welcome :)

      Reply
  9. Vivek says:
    Jun 16, 2020 at 2:28 am

    Hi,

    My emails are automatically deleting, i’ve not set any filters or any other things. What might be the issue?

    Reply
    • WPBeginner Support says:
      Jun 16, 2020 at 9:12 am

      You would want to reach out to who you are using for your emails to ensure there isn’t an issue on thier end.

      Reply
  10. Vijay says:
    May 29, 2020 at 12:56 pm

    OAuth Consent Screen is mandatory during this process.

    Anyway, your explanation is best.

    Thanks.

    Reply
    • WPBeginner Support says:
      Jun 1, 2020 at 1:37 pm

      Glad our guide could be helpful :)

      Reply
  11. Dalton says:
    Apr 20, 2020 at 8:31 pm

    I followed the steps to set up the email and it works, but how do I send emails to my email list now?

    Reply
    • WPBeginner Support says:
      Apr 21, 2020 at 1:50 pm

      If you’re attempting to create a newsletter then we would recommend going through our guide here:
      https://www.wpbeginner.com/beginners-guide/how-to-create-an-email-newsletter/

      Reply
  12. Dusan says:
    Mar 18, 2020 at 6:53 pm

    With this I get the 2000 limit in a 24 hour period as it uses only 1 email address. Is there a way to use this as the smtp relay that allows 10,000 emails to send per 24 hour period. Or any way to add in multiple emails to send from?

    Reply
    • WPBeginner Support says:
      Mar 19, 2020 at 8:53 am

      We do not have a recommended method to remove that limitation. For sending that many emails we would recommend looking at email marketing services such as the ones from our article here: https://www.wpbeginner.com/showcase/best-email-marketing-services/

      Reply
  13. Nauval says:
    Feb 28, 2020 at 1:20 am

    Is it still usefull in 2020?

    Reply
    • WPBeginner Support says:
      Feb 28, 2020 at 10:15 am

      Yes :)

      Reply
  14. Dan Martin says:
    Aug 7, 2019 at 3:58 pm

    I just used this for my site and it worked. Seriously this was a life saver. I had spent several hours troubleshooting and the video solved the whole problem in like 5 minutes. Thanks.

    Reply
    • WPBeginner Support says:
      Aug 8, 2019 at 11:02 am

      Glad our guide could help :)

      Reply
  15. Luigi says:
    Jul 24, 2019 at 9:36 am

    How can I send emails configured with WP MAIL SMTP (I use gmail) customized with the site’s domain? I need to differentiate emails depending on the type of email my site sends.

    Reply
    • WPBeginner Support says:
      Jul 24, 2019 at 10:29 am

      It would depend on what plugin/tools you are using to send the emails as WP Mail SMTP is for changing how WordPress sends the emails not for users sending emails.

      Reply
  16. Austin Blair says:
    May 16, 2019 at 5:34 am

    Just wanted to say THANK YOU! I was totally struggling to get my contact form to send emails correctly until I came across your post. I used the first method and it worked like a charm. However there was a step (probably recently introduced) where I had to set up a consent form? Took me to a different screen not featured in the video, but was relatively straight forward. Thanks again!

    Reply
    • WPBeginner Support says:
      May 16, 2019 at 11:04 am

      Thank you for letting us know and glad our article could help :)

      Reply
  17. Bobby Zopfan says:
    Mar 23, 2019 at 10:54 am

    First method (configuring inside GCloud) seemed too long to me.
    So adapted the 2nd method (don’t agree with you that 2nd method is more difficult). 2nd method has just 3-4 steps.

    But it didn’t work. SMTP couldn’t authenticate me. Although my ID/pW is fully correct.

    Reply
    • WPBeginner Support says:
      Mar 25, 2019 at 1:43 pm

      If you reach out to the plugin’s support with your specifics they should be able to help you find the problem :)

      Reply
  18. Daniel says:
    Mar 23, 2019 at 2:44 am

    Thanks again for the awesome tutorial, the forms work fine now! I have a question: I’d like to change the From Name in the plugin settings, but it’s impossible. I’ve tried to reintstall the plugin, all my settings were still saved tho. Is there any way I could change the From Name of the email now?

    Reply
    • WPBeginner Support says:
      Mar 25, 2019 at 2:47 pm

      You would want to reach out to the plugin’s support for how to set that up but for the moment, if you set it to the default method it should allow you to change those settings.

      Reply
  19. Afam says:
    Nov 23, 2018 at 2:58 pm

    Hello there,

    I’m really tired with this issue of CF7 not able to send mails to gmail from my site. It seems everyone has this issue.

    I followed your instructions to the letter and got to the point I’m supposed to allow plugin to send emails using my google account, an error appears telling me of a URI mismatch. What’s that? I copied and pasted the uri as you said. What did I do wrong. Please help me, have not been sleeping because of this.

    Thanks.

    Reply
    • WPBeginner Support says:
      Nov 23, 2018 at 6:02 pm

      Hi Afam,

      You may not have saved the redirect URI when creating the app, follow the steps again and make sure that you copy the exact URL from plugin’s settings page to enter in your app.

      Reply
  20. Sarah says:
    Oct 17, 2018 at 1:23 pm

    Hello,

    I have followed the instructions you provided, than you! I got all the way to the “allow plugin to send emails….” for gmail and when i click on that button it gives me the message that the app hasn’t been verified.
    I have tried multiple fixes but it is still isn’t working.

    I am using bluehost and WP mail stmp.

    Any suggestions?
    Thank you

    Reply
  21. Jorge Zamudio says:
    Sep 5, 2018 at 12:03 am

    your really save my day man !! hope you are doing well. Thank you

    Reply
  22. Raphael says:
    Aug 29, 2018 at 6:42 pm

    Don’t work for me. I’m using Google Cloud and Cloudflare and when i try to send a test email give me a error:

    “Could not authenticate your SMTP account.”

    Reply
    • WPBeginner Support says:
      Aug 30, 2018 at 4:40 am

      Hi Raphael,

      Check your mailer settings, SMTP information, username and password.

      Reply
  23. Mohd Tariq Khan says:
    Aug 2, 2018 at 9:03 am

    My client use g suite for email, I have created WordPress page website with contact form 7 plugin. I have analyzed contact form was not sending email from website to Gmail.

    Therefore, I have used ‘WP Mail SMTP’ plugin and create gmail API, Now email is working.

    But I am facing one issue, when submit contact us form email receive in gmail but all email recived from title is ‘me’.

    Therefore, every time show like I have to send email to myself.

    I want in email ‘Sender name’ appear at from.

    Please help me.

    Reply
    • WPBeginner Support says:
      Aug 2, 2018 at 7:10 pm

      Hi Mohd Tariq Khan,

      This could happen if you are sending and receiving email on the same address.

      For example, if you are using john.smith@example.com in WP Mail SMTP and sending contact form messages to john.smith@example.com then Gmail would show sender name as ‘me’.

      Hope this helped.

      Reply
  24. jood says:
    May 22, 2018 at 1:24 pm

    i think the key is create a same name account in bluehost within email , so as to trick host , the problem is the email will be taken as spam .

    Reply
  25. raja says:
    May 6, 2018 at 4:06 am

    hi.. i have tried to send mail using wp-mail-smtp on wordpress BY gmail as per tutorial..

    when i try to OAUTH 2 in gmail on wordpress,, it shows error.
    —————————

    Not Acceptable!
    An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.
    —————————–

    i have contacted hosting hostgator support.. Mod_security settings cant be whitelisted, as it may will leave the website vulnerable.

    please advise how to send mails

    Reply
  26. Angela Andrieux says:
    Apr 23, 2018 at 3:13 pm

    Thank you for the thorough instructions! This site has saved me so many times. I really appreciate the great content!

    Reply
  27. Sushant says:
    Apr 8, 2018 at 5:36 am

    Great Article, this worked for me, thanks a ton guys!

    Reply
  28. mostafa says:
    Feb 22, 2018 at 8:49 am

    thanks a lot for this tutorial . i have this problem for an week and the issue has solved with this tutorial.

    Reply
  29. Leonardo Assennato says:
    Feb 20, 2018 at 9:08 pm

    Hello,
    I setup an email address to send the emails and it worked.
    But I need to change the email account.

    I already tried the Method 2, but it doesn’t work on my server.

    I already unnistalled and re-install the plugin but all the data are stored.

    Can anybody help me?

    Reply
  30. Linda says:
    Feb 10, 2018 at 10:42 am

    Thanks so much. This was a huge help!

    Reply
  31. Pankaj Chauhan says:
    Feb 7, 2018 at 3:20 pm

    Thank you so much! This was so helpful for me.

    Reply
  32. Imrana says:
    Nov 20, 2017 at 10:19 am

    thankyou for this amazing tutorial

    Reply
  33. Ahmad fatah says:
    Oct 31, 2017 at 10:55 pm

    is this tutor works with free gmail account?
    thanks for great tutorial you make..
    i search anything about wp and your site in top of google..just wow

    Reply
  34. Kevin says:
    Aug 5, 2017 at 7:30 am

    I just went through this and got the following message after trying to send a test email:

    Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
    Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to smtp.gmail.com:587 (Network is unreachable)
    SMTP ERROR: Failed to connect to server: Network is unreachable (101)
    SMTP connect() failed.

    Reply
  35. Pawan Negi says:
    Jul 8, 2017 at 2:40 am

    Hi please help me when i click on grant permission button it show me that error.

    400. That’s an error.

    Error: invalid_scope

    You don’t have permission to access some scopes. Your project is trying to access scopes that need to go through the verification process. {invalid = [https://mail.google.com/]} If you need to use one of these scopes, submit a verification request.

    Learn more

    Request Details
    client_id=940707600009-5f3lstctsc081s72c27h4hhmf5212a7p.apps.googleusercontent.com

    That’s all we know.

    Reply
  36. Amanda says:
    Jun 1, 2017 at 1:04 pm

    I got . . .

    Fatal error: Cannot redeclare class phpmailerException in /home/content/04/11965204/html/sofp/wp-includes/class-phpmailer.php on line 4040

    I can’t seem to get this fixed no matter what solve I try. There doesn’t appear to be a contact form in our future :-(

    Google Search didn’t help with this error code. I can’t imagine that I’m the first one to get it . . .

    Reply
  37. Laura Hart says:
    May 25, 2017 at 7:25 pm

    I loved how helpful this was, unfortunately I still can’t make the “grant access” button appear! Any idea why that would happen? Googling isn’t working.
    Thank you!

    Reply
  38. David says:
    May 21, 2017 at 8:36 pm

    Hi, I used this tutorial last year to install and configure the Gmail SMTP plugin. Until very recently, the Gmail SMTP plugin in conjunction with my website’s contact form worked perfectly. But I tested my website’s contact form today, and I got the following fatal-error message:

    Fatal error: Uncaught exception ‘Google_Auth_Exception’ with message ‘Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }”

    I don’t have a clue what that means. I get the same fatal-error message when I use the plugin to send a test message at Gmail SMTP plugin>Settings>Test email.

    I haven’t changed any of the plugin settings since I first installed it a year ago, and I haven’t done anything new with my Google Console account either. I’m using the most recent version of the Gmail SMTP plugin, and also the newest version of WordPress.

    Any ideas or suggestions?

    Thanks!

    Reply
    • WPBeginner Support says:
      May 23, 2017 at 12:22 am

      Hey David,

      It seems like your Oauth2 token has expired. Try following the tutorial again from the beginning to set it up again.

      Reply
  39. Ehsan says:
    May 11, 2017 at 5:16 am

    Thank U very much – one of my problem was this “my emails goes to spam folder”
    with this service(Method 1) Now It’s great – of course after 14 days you must pay for that but still it’s prefect
    I have question;
    Can I send 100 Emails like newsletter for my customer is it OK for Google!?
    I afraid my Emails after it goes to spam folder again

    Reply
  40. Sharon says:
    Apr 27, 2017 at 4:55 pm

    I did everything as described, but the contact form on my website still does not work.

    Reply
  41. Adondriel says:
    Apr 25, 2017 at 4:37 pm

    Hey, add a thing at the end for the troubleshooting thing: “Check with your website host and verify that they do not block outgoing requests by default.” I know 1. GoDaddy does this, and won’t let you unblock. and 2. Namecheap also blocks by default but you just gotta contact support, give em your info and ask em to unblock port 587 and boom, it’ll all work again.

    Reply
  42. Lucas says:
    Apr 5, 2017 at 10:00 am

    You save my life!

    Tks!

    Reply
  43. adam says:
    Mar 5, 2017 at 8:09 am

    i keep getting a Error: redirect_uri_mismatch when i press ‘grant permission’. It’s driving me nuts as I can’t work out what is wrong? Everything seems to match.
    Adam

    Reply
    • Grzegorz says:
      Apr 5, 2017 at 6:15 am

      Same here. i get redirect_uri_mismatch

      Reply
  44. Macky says:
    Feb 12, 2017 at 12:19 pm

    This video has been a fantastic help.

    I’m a complete WordPress beginner.The step-by step instructions are very easy to follow. Now my emails are working perfectly!! Plus I also learnt how to insert headers & footers with ease.

    Thanks once again!!

    Reply
    • WPBeginner Support says:
      Feb 12, 2017 at 3:33 pm

      Hi Macky,

      We are glad you found the video helpful. You may also want to subscribe to our YouTube Channel for WordPress video tutorials.

      Reply
  45. Fabio says:
    Jan 8, 2017 at 9:47 pm

    Your tutorial saved my site! Thank you very much mate!

    Reply
  46. Maggie Z says:
    Jan 6, 2017 at 11:33 am

    A follow-up question – because of the login conflict issue, I was also considering using WP Mail SMTP. However, many users on the support forum for that plugin express concern that the password for the email account is visible on the admin page in plain text.

    I have a firewall set up that prevents non-admins from getting in to the back end, so is there any real security concern regarding the password showing in plain text? Any advice much appreciated!!!

    Reply
    • Maggie Z says:
      Jan 15, 2017 at 11:13 am

      After troubleshooting quite a bit, I finally relented and went with WP Mail SMTP, which requires the “allow less secure apps” solution – a tech support person at G Suite told me that it was safe, and it seems like the only way to go for my particular setup. Appears to be working now. Thanks for the incredibly clear instructions!!! I am now a firm fan of this site.

      Reply
  47. Maggie Zellner says:
    Jan 6, 2017 at 11:29 am

    The video is fantastic, and the plugin installed perfectly. Unfortunately I didn’t realize until after I went through the whole process (because I didn’t read the documentation on the plugin carefully), the Gmail SMTP plugin eliminates the need for users to log in, and therefore it interfered with the login process that we have instituted for paid members on our website (which we manage through a plugin called PaidMembershipsPro).

    Is there any way to disable that aspect of this plugin, so I can send all email via our Gmail account, but can still have users log in and out?

    Reply
  48. Eric says:
    Jan 5, 2017 at 6:37 pm

    Great article! However, I am unclear on something when using WordPress for sending newsletters. What is the difference between those mass emailing service providers (mailgun & Sendgrid) and using Google Apps for work SMTP?

    Can’t we use Google Apps for work to send newsletters just as well?

    Reply
    • WPBeginner Support says:
      Jan 6, 2017 at 1:45 am

      with Google Apps for Work, you can only send an email to 500 recipients max (for paid business accounts). You cannot use it for newsletters.

      Reply
    • Eric says:
      Jan 6, 2017 at 12:28 pm

      Thanks so much for your response! With Google Apps for Work only limiting to 500 recipients, then I suppose it would work if we sent it to 500 or less people.

      My next question, is it max to send all at one time or per day? If we throttle it to only send out a few per minute, do you know if it would allow it to send thousands within a few hours?

      Reply
  49. Heather says:
    Jan 1, 2017 at 6:32 am

    Thank you so much! This was so helpful!

    Reply
  50. zim ejin says:
    Nov 21, 2016 at 8:21 am

    Hi, this was very informative thank you for posting. however i have a website hosted on aws ec2, and route53 for dns. i tried the secure configuration. it didn’t work. Is there a special configuration for self hosted websites on aws ec2/route53. btw : i don’t have a cpanel installed.

    Reply
« 1 2

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
SeedProd Logo
SeedProd
Create beautiful custom landing pages - Drag & drop builder. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
LiveChat logo
LiveChat Inc Coupon
Get a 30 day free trial and 30% OFF LiveChat, one of the best live chat service providers for WordPress users.
LearnDash
LearnDash Coupon
Get the lowest price on the best learning management system (LMS) plugin for WordPress.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.