Gmail does it time to time for security reasons. In order to fix this issue login to your Gmail account first. This error usually occurs when Gmail blocks an SMTP connection made from an external server.
![gmail secure smtp gmail secure smtp](https://wpmailsmtp.com/wp-content/uploads/2020/11/Sign-In-Attempt-Blocked-Google-1.png)
If you are connecting to the Gmail SMTP server for the first, you might get an error: smtp connect() failed or Could not authenticate. Please note that most servers don’t support encryption on port 25, which is why port 587 and 465 are the preferred options.
![gmail secure smtp gmail secure smtp](https://blog.sqlauthority.com/wp-content/uploads/2018/07/gmail-dbmail-01-800x782.jpg)
If you still can’t get either to work try port 25 with TLS first and then SSL. If you can’t get it to work then you can try changing it to 465 (with SSL encryption). I agree to the Terms & Conditions You must agree to the Terms & Conditions!īy default, your SMTP port should be configured on 587 (with TLS encryption). In order to test the email functionality, you can send a test email from the Test Email tab.ĭebug option is enabled by default for the test email functionality – which means you would be able to see if the plugin was able to send the email without any error.
![gmail secure smtp gmail secure smtp](https://i.ytimg.com/vi/moMT81Ovxys/maxresdefault.jpg)
If you get the This app isn’t verified error simply click Advanced and continue. Add the email address corresponding to your google account.Go to Oauth consent screen of your app.If you click the Grant Permission button and get an authorization error (Error 403: access denied) please follow these steps: Gmail SMTP plugin will now be able to take control of all outgoing email from your website. The SMTP Status should also get set from Not Connected to Connected. You should see a message like Access Granted Successfully. When you click Allow you will get redirected back to the plugin settings. Clicking on it will take you to a consent screen where you will be able to grant this app access to the Gmail API.Ĥ. Now that you have configured the settings a Grant Permission button will appear.ģ. If you choose TLS it should be set to 587. SMTP Port: The port which will be used when sending an email. By default, it should be set to TLS since SSL has been deprecated since 1998. Type of Encryption: The encryption which will be used when sending an email (either TLS/SSL). This should be the same email used in the Google Developers Console.įrom Email Address: The email address which will be used as the From Address when sending an email.įrom Name: The name which will be used as the From Name when sending an email. OAuth Email Address: The email address that you will use for SMTP authentication. Copy and paste them into the settings area of the plugin. This will generate a Client ID and Client Secret for you. Copy the Authorized Redirect URL from the settings and paste it into the field here.ġ1. Set the application type to Web application and enter a name for it (e.g. Go to the Credentials tab and select OAuth client ID under CREATE CREDENTIALS.ġ0. Now that the OAuth consent screen has been configured you can create an OAuth Client ID.ĩ. If the Publishing status is set to In production, a warning message (This app isn’t verified) may appear on the consent screen that you can easily skip. Keep your app in test mode or publish it. Add a test user if you plan to use this app in test mode (This is not required if you want to publish it).Ĩ. You do however need to enter an email address under the Developer contact information section.ħ. You can configure optional fields such as Authorized domains, Application home page, Application privacy policy link and Application terms of service link (I was able to skip all and click SAVE AND CONTINUE). Gmail SMTP) for the OAuth consent screen.ĥ. Since I’m not using G Suite I had to choose External.Ĥ. Choose how you want to configure and register your app. In order to create an OAuth client ID, you need to configure the OAuth consent screen first. Once the project is created go to Credentials > CREATE CREDENTIALS and select OAuth client ID.Ģ.
![gmail secure smtp gmail secure smtp](https://xeroneit.net/upload/blog/image_28_1576664733474282.png)
I chose a meaningful name because I have multiple projects in it. It doesn’t have to be “Gmail SMTP Project 1”. Create a new project where your application will be registered. Login to your Google account which will be used to send an email.ģ.