Title: GMail SMTP errors out with google_no_code_scope
Last modified: November 13, 2019

---

# GMail SMTP errors out with google_no_code_scope

 *  Resolved [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/gmail-smtp-errors-out-with-google_no_code_scope/)
 * Hi,
 * I was using GMail as SMTP without any issues and for observing an issue with 
   GMail where I’m not able to authenticate gmail.
 * After approving my app, I get redirected to below page with “google_no_code_scope”
   error.
 * ![](https://i0.wp.com/i.snipboard.io/KfIVjP.jpg?ssl=1)
 * I’m sure all the creds are correct for gmail auth.
    But not sure why this issue
   is popping up.
 * Can you please help me here ?
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/gmail-smtp-errors-out-with-google_no_code_scope/#post-12136786)
 * Hi [@vaakash](https://wordpress.org/support/users/vaakash/),
 * The issue indicates that there was an error while processing the authentication
   request. Maybe no auth code was generated due to some issues. Usually, re-trying
   authentication fixes this issue.
 * Thanks!
 *  Thread Starter [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/gmail-smtp-errors-out-with-google_no_code_scope/#post-12137452)
 * Hi [@sanzeeb3](https://wordpress.org/support/users/sanzeeb3/),
 * I’ve tried the authentication multiple times. The issue is same. Could you please
   help me fix this ?
 * Any hint would be helpful.
 * Thanks,
    Aakash
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gmail-smtp-errors-out-with-google_no_code_scope/#post-12149705)
 * Hi [@vaakash](https://wordpress.org/support/users/vaakash/),
 * The error appears usually when we haven’t received a special code from Google
   when the user approved the connection on Google site or the scope is unusual.
   This could be due to some server configuration or try setting up Gmail again 
   with all the steps in the [tutorial](https://wpmailsmtp.com/docs/how-to-set-up-the-gmail-mailer-in-wp-mail-smtp/)
   in case that helps.
 * Thanks!
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gmail-smtp-errors-out-with-google_no_code_scope/#post-12180126)
 * Hi [@vaakash](https://wordpress.org/support/users/vaakash/) – We haven’t heard
   from you in about a week, so I’m going to go ahead and mark this ticket resolved.
   If you still have questions, though, please feel welcome to continue the conversation.
 *  Thread Starter [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/gmail-smtp-errors-out-with-google_no_code_scope/#post-12180347)
 * [@sanzeeb3](https://wordpress.org/support/users/sanzeeb3/) I’m still not able
   to use gmail smtp. I’ve stopped using the plugin after trying all things.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘GMail SMTP errors out with google_no_code_scope’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/gmail-smtp-errors-out-with-google_no_code_scope/#post-12180347)
 * Status: resolved