{"id":25396,"date":"2021-06-12T17:00:36","date_gmt":"2021-06-12T15:00:36","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=25396"},"modified":"2021-06-11T11:42:05","modified_gmt":"2021-06-11T09:42:05","slug":"how-to-setup-gmail-smtp-wordpress","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/how-to-setup-gmail-smtp-wordpress\/","title":{"rendered":"How to Send WordPress Emails with the Gmail SMTP Server"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Emails are one of the most common ways to engage with website users and convey information in general. However, if you are managing a WordPress website, chances are high that you have experienced some mailing issues. It could be that the emails aren\u2019t being delivered or that they are wrongly marked as spam. These emails are called transactional and include user account notifications, password reset emails, contact form notifications, or other product-related emails, among others.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]These emails are vital to smooth business operation, which makes it important to tackle any errors as soon as they appear. In this article, we will discuss why email issues occur and how to tackle them using the SMTP mailing protocol. Furthermore, we will discuss the benefits of using the Gmail SMTP server as your SMTP mailer of choice and how to properly set it up. To help you navigate this topic, we\u2019ve broken it down into several smaller steps:<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#using-the-gmail-mailer-option\">Using the Gmail mailer option<\/a>\n<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#testing-the-gmail-smtp-mailing\">Testing the Gmail SMTP mailing<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#troubleshooting-errors-during-setup\">Troubleshooting errors during setup<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Advantages of using the Gmail SMTP server for WordPress emails<\/h2>\n<p>[\/vc_column_text][vc_column_text]WordPress mailing issues happen most often because of the default <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_mail\/\" target=\"_blank\" rel=\"noopener\">wp_mail()<\/a> function used by WordPress to send emails. Some hosting providers aren\u2019t configured to use this function, meaning your WordPress emails won\u2019t be sent at all, while other hosting providers implement heavier restrictions by adding email authentication. As a result, WordPress emails that use this default function are more likely to end up in spam because of problematic email headers. If your WordPress emails are often marked as spam, certain email providers may choose to block them, which is a significant concern for WordPress website owners using shared hosting.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To avoid all those WordPress mailing problems, we advise using SMTP. SMTP or Simple Mail Transfer Protocol is the most efficient email delivery method currently available. It includes a website authentication method that gives more legitimacy to the sender, which can significantly increase email deliverability. The SMTP protocol can be implemented using custom code or with a suitable WordPress plugin that integrates a third-party mailing service. As plugins are easier to implement for users of all knowledge levels, we have opted to show you the latter. And in the following sections, we\u2019ll guide you through integrating the Gmail SMTP mailing service with WordPress.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The reason we picked the Gmail SMTP service is that it allows users to send up to 500 emails per day with a free Gmail account, and up to 2,000 per day with a paid G Suite account. That amount of free emails per day is greater than any other currently available SMTP mailer and it is more than sufficient for any small to medium WordPress website or blog. If you don\u2019t fall into that category, you should carefully review other SMTP mailing services to find the one that works best for you. Some of them will be included as the mailing options within the plugin we decided to cover.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Additionally, Gmail doesn\u2019t require you to insert your password as a form of verification but uses the OAuth 2.0 authentication method, which makes the whole process more secure. This also makes it a bit more complicated than any other SMTP mailer option. Nevertheless, we have carefully covered all the steps below so you should have no trouble implementing the steps on your end.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;80px&#8221;][vc_widget_sidebar sidebar_id=&#8221;new-top-picks-banner&#8221;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">How to send WordPress emails using the Gmail SMTP server<\/h2>\n<p>[\/vc_column_text][vc_column_text]Now that we covered why using the Gmail SMTP server for sending WordPress emails is a great option, let\u2019s take a look at how to do that. For this article, we will guide you through the process using the WP Mail SMTP plugin, which is pretty popular in the WordPress community.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The <a href=\"https:\/\/wordpress.org\/plugins\/wp-mail-smtp\/\" target=\"_blank\" rel=\"noopener\">WP Mail SMTP<\/a> plugin is the most used WordPress SMTP plugin at the moment. It allows you to integrate your website with the most popular mailing services (SMTP.com, Sendinblue, Gmail, Amazon SES, and others). It is a freemium plugin with extensive documentation and a wizard to help you with the setup process. The premium version unlocks additional features like email logging, managing WordPress emails and notifications, multisite settings, premium support, and a \u201cwhite glove\u201d setup service.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"using-the-gmail-mailer-option\"><\/a>Using the Gmail mailer option<\/h3>\n<p>[\/vc_column_text][vc_column_text]After <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-install-a-wordpress-plugin\/\">installing the plugin<\/a>, <strong>navigate to WP Mail SMTP &gt; Settings<\/strong>. This will place you within the General tab, where you should <strong>examine the available settings<\/strong>. Then, <strong>insert the sender email address in the <em>From Email<\/em> field<\/strong> and <strong>the sender name in the <em>From Name<\/em> field<\/strong>. By default, the<em> From Name<\/em> field will already contain your website\u2019s name, but you can change that now if you want.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"640\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-Settings.jpg\" class=\"attachment-full size-full\" alt=\"WP Mail SMTP Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-Settings.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-Settings-300x198.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-Settings-768x507.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-Settings-620x409.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Additionally, there are other settings you can enable, but as they depend on individual preferences and aren\u2019t necessary, we won\u2019t cover them. However, please note that the return path option isn\u2019t supported for the Gmail mailer. As such, it will be disabled upon selecting Gmail as the mailer option.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Now, let\u2019s proceed to the most important section\u2014the mailer options. To send WordPress emails using the Gmail SMTP server, <strong>choose Gmail as your mailer option<\/strong>. This will make the subsequent options appear for the appropriate mailer.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]As you can see from the screenshot below, you will need to create two things to finish this process\u2014client ID and client secret. And then you will need to pass the authorization check. Don\u2019t forget to save your chosen settings by <strong>pressing the <em>Save Settings<\/em> button<\/strong> at the bottom.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"496\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer.jpg\" class=\"attachment-full size-full\" alt=\"Gmail Mailer\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-300x154.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-768x393.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-620x317.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;60px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"456\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Save-Settings.jpg\" class=\"attachment-full size-full\" alt=\"Gmail Mailer Save Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Save-Settings.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Save-Settings-300x141.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Save-Settings-768x361.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Save-Settings-620x292.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The following step involves creating a web application inside the Google Cloud Platform with the appropriate credentials for the authorization process. But, before we jump into that, we want to address two things.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Firstly, you shouldn\u2019t be alarmed if you can\u2019t see the <em>From Email<\/em> value after saving the Gmail mailer choice. The option isn\u2019t lost, it simply becomes disabled until you successfully create the web application in this step and it is restored afterward.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Secondly, as you can see on the screenshot above, there are other methods of connecting to Google SMTP that are less secure. One of those methods is also available with the WP Mail SMTP plugin and you can enable it by choosing the <em>Other SMTP<\/em> mailer option. However, as this method requires you to enable less secure apps in your Google account and insert your Gmail password for authorization purposes, we won\u2019t be using it. For anyone who\u2019s interested, we suggest reviewing the <a href=\"https:\/\/wpmailsmtp.com\/docs\/\" target=\"_blank\" rel=\"noopener\">plugin\u2019s documentation<\/a>, especially the part on <a href=\"https:\/\/wpmailsmtp.com\/docs\/how-to-set-up-the-other-smtp-mailer-in-wp-mail-smtp\/\" target=\"_blank\" rel=\"noopener\">setting up the other SMTP mailers<\/a>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]With that being said, let\u2019s carry on with this step. <strong>We suggest keeping the current tab with the plugin settings open and conducting all the remaining steps in a separate tab.<\/strong> This will save you a lot of time as some steps require copying and pasting information from one tab into the other.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]For starters, <strong>navigate to the <a href=\"https:\/\/cloud.google.com\/\" target=\"_blank\" rel=\"noopener\">Google Cloud Platform<\/a><\/strong> and<strong> log in<\/strong> with your credentials. Then, you need to <strong>create a new project<\/strong>. If you haven\u2019t created any projects previously, the <strong><em>Create project<\/em> button<\/strong> will be at the top of your Google Cloud Dashboard. <strong>Click on this button<\/strong> to create your new project.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Create-Project-Button.jpg\" class=\"attachment-full size-full\" alt=\"Gmail Mailer Create Project Button\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Create-Project-Button.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Create-Project-Button-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Create-Project-Button-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Create-Project-Button-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Set the project name<\/strong> and <strong>click on the <em>Create<\/em> button<\/strong> below. If you want, you can also edit the project ID and assign a parent organization or folder to this project.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Project-Name.jpg\" class=\"attachment-full size-full\" alt=\"Gmail Mailer Project Name\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Project-Name.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Project-Name-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Project-Name-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Project-Name-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you previously made projects within the Google Cloud DashboardPlatform, then you need to <strong>click on the dropdown link next to one of your existing projects.<\/strong> This will open a popup window where you need to <strong>click on the<em> New project<\/em> button.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Select-a-Project.jpg\" class=\"attachment-full size-full\" alt=\"Gmail Mailer Select a Project\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Select-a-Project.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Select-a-Project-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Select-a-Project-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Select-a-Project-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]At this point, you\u2019ll see the same page for creating a new project and you can proceed as mentioned above. A word of advice, make sure to pick an obvious project name so you can easily find it among other projects later on. Once you\u2019ve made your project, <strong>navigate to APIs &amp; Services &gt; Library.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Library.jpg\" class=\"attachment-full size-full\" alt=\"Gmail Mailer Library\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Library.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Library-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Library-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Library-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]On the following page, <strong>locate the Gmail API<\/strong> (it will be in the Google Workspace section) and <strong>click on it<\/strong>. If you need help locating it, you can also use the search feature that is included at the top of the page.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"538\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Gmail-API.jpg\" class=\"attachment-full size-full\" alt=\"Gmail Mailer Gmail API\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Gmail-API.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Gmail-API-300x167.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Gmail-API-768x426.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-Mailer-Gmail-API-620x344.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]On the following page, <strong>click on the <em>Enable<\/em> button<\/strong> to enable the Gmail API.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-API-Enable.jpg\" class=\"attachment-full size-full\" alt=\"Gmail API Enable\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-API-Enable.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-API-Enable-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-API-Enable-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Gmail-API-Enable-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Next, <strong>click on the <em>Create credentials<\/em> button<\/strong>, located near the top of the Overview tab within the Gmail API.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Create-Credentials.jpg\" class=\"attachment-full size-full\" alt=\"Create Credentials\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Create-Credentials.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Create-Credentials-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Create-Credentials-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Create-Credentials-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The first step is to define your credential type. To do so, <strong>select <em>Gmail API<\/em> as the API you are going to use<\/strong> and <strong>tick <em>User data<\/em> as the data you will be accessing. Click on <em>Next<\/em><\/strong> to save these choices and proceed to the next step.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"645\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Credential-Type.jpg\" class=\"attachment-full size-full\" alt=\"Credential Type\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Credential-Type.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Credential-Type-300x200.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Credential-Type-768x511.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Credential-Type-620x413.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Then, <strong>insert the app name and add a user support email<\/strong> where users can contact you regarding their consent. Also, make sure to insert the developer\u2019s email address below. You can also upload an app logo image, if you like. Whereas the first three settings were mandatory, uploading an image isn\u2019t, so we decided to skip it in our tutorial. To confirm your choices, <strong>click on the <em>Save and Continue<\/em> button<\/strong> below.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"677\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/App-Information.jpg\" class=\"attachment-full size-full\" alt=\"App Information\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/App-Information.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/App-Information-300x210.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/App-Information-768x537.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/App-Information-620x433.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The third step in creating the API credentials involves setting the optional scopes. As those will be set by the WP Mail SMTP plugin, you should simply skip this step by <strong>clicking on the <em>Save and continue<\/em> button<\/strong> at the bottom.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Save-and-Continue.jpg\" class=\"attachment-full size-full\" alt=\"Save and Continue\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Save-and-Continue.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Save-and-Continue-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Save-and-Continue-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Save-and-Continue-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After this, you need to create the OAuth Client ID. To do so, <strong>select <em>Web application<\/em> as the application type<\/strong> and <strong>insert a name<\/strong> for it below. You can call it whatever you like as this name is only used to identify the OAuth 2.0 client and it won\u2019t be visible to end-users. Then, <strong>insert your website\u2019s URL inside the Authorized JavaScript origins &gt; URIs option<\/strong>. Make sure to insert it without the trailing slash.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Afterward, <strong>return to the tab with the plugin settings, find the <em>Authorized redirect URI<\/em> option<\/strong>, and copy it (there\u2019s a helpful copy button next to it). Then,<strong> return to the previous tab. Paste this URL inside the Authorized redirect URIs &gt; URIs option<\/strong> and <strong>click on the <em>Create<\/em> button<\/strong> at the bottom.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"457\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Copy-URI.jpg\" class=\"attachment-full size-full\" alt=\"Copy URI\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Copy-URI.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Copy-URI-300x141.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Copy-URI-768x362.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Copy-URI-620x292.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;60px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"676\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Paste-URI.jpg\" class=\"attachment-full size-full\" alt=\"Paste URI\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Paste-URI.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Paste-URI-300x209.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Paste-URI-768x536.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Paste-URI-620x433.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Once you\u2019ve done that, the OAuth client credentials will be made. You can download the complete credential information as a JSON object by pressing the <em>Download<\/em> link. However, as we only need the client ID and client secret, we can just<strong> click on the <em>Done<\/em> button<\/strong> below.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"650\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Done-Button.jpg\" class=\"attachment-full size-full\" alt=\"Done Button\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Done-Button.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Done-Button-300x201.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Done-Button-768x515.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Done-Button-620x416.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After that,<strong> locate the client ID you created earlier<\/strong> on the OAuth 2.0 Client IDs list and <strong>click on the <em>Edit<\/em> icon<\/strong> next to it.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Edit-Icon.jpg\" class=\"attachment-full size-full\" alt=\"Edit Icon\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Edit-Icon.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Edit-Icon-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Edit-Icon-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Edit-Icon-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The aim here is not to edit the information; instead, this action will help us copy the client ID and secret that can be found on the edit page, in the top right corner.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret.jpg\" class=\"attachment-full size-full\" alt=\"Client ID and Client Secret\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>After copying the data, make sure to close the web application edit page by pressing the <em>Cancel<\/em> button<\/strong> near the bottom of the page.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>The copied client ID and client secret data should be pasted inside the corresponding plugin options.<\/strong> Once you\u2019ve done that, <strong>click on the <em>Save Settings<\/em> button<\/strong> at the bottom to save that data.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"461\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-Paste.jpg\" class=\"attachment-full size-full\" alt=\"Client ID and Client Secret Paste\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-Paste.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-Paste-300x143.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-Paste-768x365.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Client-ID-and-Client-Secret-Paste-620x295.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Completing all the steps so far will give you access to the authorization button. Then, to confirm the authorization process, <strong>press the <em>Allow plugin to send emails using your Google account<\/em> button.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"529\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization.jpg\" class=\"attachment-full size-full\" alt=\"Authorization\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-300x164.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-768x419.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-620x338.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the following window, you will be asked to <strong>choose a Gmail account that will be used for the authorization process<\/strong> of the web application you made in previous steps.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"570\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Choose-an-Account.jpg\" class=\"attachment-full size-full\" alt=\"Choose an Account\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Choose-an-Account.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Choose-an-Account-300x176.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Choose-an-Account-768x452.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Choose-an-Account-620x365.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After selecting your Gmail account you might see a warning screen similar to the one below, stating that Google hasn\u2019t verified the app yet.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"501\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Hide-Advanced.jpg\" class=\"attachment-full size-full\" alt=\"Hide Advanced\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Hide-Advanced.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Hide-Advanced-300x155.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Hide-Advanced-768x397.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Hide-Advanced-620x321.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]This is nothing unusual and you should simply proceed and <strong>click on the <em>Advanced<\/em> link<\/strong>. Then, <strong>click on the <em>Proceed to wpmailsmtp.com<\/em> link<\/strong>. After that, you should give wpmailsmtp.com the necessary permissions to edit Gmail emails (read, compose, send and permanently delete). This is done by <strong>ticking the checkbox next to the permissions<\/strong> you are giving and <strong>clicking on the <em>Allow<\/em> button<\/strong> below.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"685\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Confirm-Choices.jpg\" class=\"attachment-full size-full\" alt=\"Confirm Choices\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Confirm-Choices.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Confirm-Choices-300x212.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Confirm-Choices-768x543.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Confirm-Choices-620x438.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Once you\u2019ve done that, you will be redirected to the plugin settings screen. In there, you will see a success message near the top stating that you have successfully linked your website with the newly created Google API project.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"689\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Successfully-Linked.jpg\" class=\"attachment-full size-full\" alt=\"Successfully Linked\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Successfully-Linked.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Successfully-Linked-300x213.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Successfully-Linked-768x546.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Successfully-Linked-620x441.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]With this, the plugin configuration process is over. The only thing that remains is to test the mailing process, and we\u2019ll guide you through it in the following section.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"testing-the-gmail-smtp-mailing\"><\/a>Testing the Gmail SMTP mailing<\/h3>\n<p>[\/vc_column_text][vc_column_text]To test the Gmail SMTP mailing process, you should <strong>navigate to WP Mail SMTP &gt; Settings<\/strong> and <strong>open the<em> Email Test<\/em> tab<\/strong>. To send the test email, <strong>insert the recipient address in the <em>Send To<\/em> field<\/strong> and <strong>press the<em> Send Email<\/em> button<\/strong> below.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"488\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Send-Email.jpg\" class=\"attachment-full size-full\" alt=\"Send Email\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Send-Email.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Send-Email-300x151.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Send-Email-768x387.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Send-Email-620x312.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you properly completed all the previous steps, then you should see a success message similar to the one shown below.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"609\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Test-Email-Sent.jpg\" class=\"attachment-full size-full\" alt=\"Test Email Sent\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Test-Email-Sent.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Test-Email-Sent-300x189.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Test-Email-Sent-768x483.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Test-Email-Sent-620x390.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Nevertheless, you should check your inbox as well. The test email should look similar to the one shown below.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"1284\" height=\"973\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP.jpg\" class=\"attachment-full size-full\" alt=\"WP Mail SMTP\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP.jpg 1284w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-300x227.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-1024x776.jpg 1024w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-768x582.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-1240x940.jpg 1240w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-970x735.jpg 970w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/WP-Mail-SMTP-620x470.jpg 620w\" sizes=\"auto, (max-width: 1284px) 100vw, 1284px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Make sure to check both the sender name and email settings to verify that they correspond to the ones inserted in the plugin settings.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"troubleshooting-errors-during-setup\"><\/a>Troubleshooting errors during setup<\/h3>\n<p>[\/vc_column_text][vc_column_text]During the configuration process for your Gmail SMTP WordPress emails, you might encounter various issues. However, you shouldn\u2019t let that discourage you as the WP Mail SMTP plugin has very thorough documentation. We strongly advise reviewing <a href=\"https:\/\/wpmailsmtp.com\/docs\/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp\/#faq\" target=\"_blank\" rel=\"noopener\">the plugin\u2019s FAQ section<\/a> to get an overview of what possible errors you could encounter and how to solve them. It covers all the frequent errors you can get both during the configuration process and the email testing process.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]On our end, we experienced the 403 authorization error during setup. While this is just one of several possible errors, we decided to share how we dealt with it in the final part of the article.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]After choosing a Gmail account that will be used for your web application\u2019s authorization process, you might get <strong>an authorization 403 error<\/strong>. If this happens, you shouldn\u2019t worry.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"649\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-Error.jpg\" class=\"attachment-full size-full\" alt=\"Authorization Error\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-Error.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-Error-300x201.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-Error-768x514.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Authorization-Error-620x415.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The Google Cloud Platform Console Help section on <a href=\"https:\/\/support.google.com\/cloud\/answer\/10311615#zippy=%2Cinternal\" target=\"_blank\" rel=\"noopener\">setting up your OAuth consent screen<\/a> provides the following explanation of the error:[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]\u201cAn org_internal authorization error is displayed when authorization is requested from users outside the Google Cloud project&#8217;s parent.\u201d<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Therefore, the simplest solution to this problem is to make the web application external instead of internal, which is its default setting. Internal web applications can configure internal members that the authorization is limited to, whereas external applications are available to any user with a Google account.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To make the web application external,<strong> navigate to the OAuth consent screen tab<\/strong> and<strong> click on the <em>Make external<\/em> button.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"681\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External.jpg\" class=\"attachment-full size-full\" alt=\"Make External\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-300x211.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-768x540.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-620x436.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the popup window that opens, <strong>set the publishing status to <em>In production<\/em><\/strong> and<strong> click on the <em>Confirm<\/em> button<\/strong> to make the application external.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]We would like to draw your attention to the notice below the<em> In production<\/em> option. While you don\u2019t need to submit your app for verification now, if you change some of the information in the future, you will need to get it verified. Having said that, let\u2019s move on.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-Confirm.jpg\" class=\"attachment-full size-full\" alt=\"Make External Confirm\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-Confirm.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-Confirm-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-Confirm-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/06\/Make-External-Confirm-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Afterward,<strong> repeat the authorization process<\/strong> as described above.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]A frequent cause of mailing issues for WordPress websites is the default wp_mail() function. The easiest way to avoid this problem is by switching to the SMTP protocol and sending your WordPress emails via a dedicated server. Using SMTP will improve the deliverability of your emails and help you maintain steady business and website operation.<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To that end, we covered how to connect your website to the Gmail SMTP server using the WP Mail SMTP plugin. And we explained how to create a web application in Google Cloud Platform as well as the OAuth client ID and secret which are used for the authorization process. Even though the whole configuration process might be lengthy, we took care to cover the process step-by-step. Additionally, the plugin we chose includes thorough documentation which can help you with any doubts or issues you may run into. Now all you have to do is carefully follow our guide and your Gmail SMTP server setup for WordPress will be done and dusted.<br \/>\n[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Sending emails from your site often comes with issues, but you can avoid most of them by switching to the Gmail SMTP WordPress emails.<\/p>\n","protected":false},"author":11229,"featured_media":25599,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[93,4,13],"class_list":["post-25396","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-email","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/25396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/11229"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=25396"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/25396\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/25599"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=25396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=25396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=25396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}