Title: GMail error
Last modified: February 27, 2018

---

# GMail error

 *  Resolved [petebm](https://wordpress.org/support/users/petebm/)
 * (@petebm)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/gmail-error-2/)
 * Hi
    I wonder if you can pinpoint the error in my Gmail setup – I thought I followed
   your excellent instructions to the letter! This is the error log from a test:
   Versions: WordPress: 4.9.4 WordPress MS: No PHP: 5.6.33 WP Mail SMTP: 1.2.5
 * Params:
    Mailer: gmail Constants: No Client ID/Secret: Yes Auth Code: Yes Access
   Token: No
 * Server:
    OpenSSL: Yes PHP.allow_url_fopen: Yes PHP.stream_socket_client(): Yes
   PHP.fsockopen(): Yes PHP.curl_version(): Yes
 * Debug:
    Error while sending via Gmail mailer: { “error”: { “errors”: [ { “domain”:“
   global”, “reason”: “required”, “message”: “Login Required”, “locationType”: “
   header”, “location”: “Authorization” } ], “code”: 401, “message”: “Login Required”}}
   Error while sending via Gmail mailer: { “error”: { “errors”: [ { “domain”: “global”,“
   reason”: “required”, “message”: “Login Required”, “locationType”: “header”, “
   location”: “Authorization” } ], “code”: 401, “message”: “Login Required” } } 
   Error while sending via Gmail mailer: { “error”: { “errors”: [ { “domain”: “global”,“
   reason”: “required”, “message”: “Login Required”, “locationType”: “header”, “
   location”: “Authorization” } ], “code”: 401, “message”: “Login Required” } } 
   Error while sending via Gmail mailer: { “error”: { “errors”: [ { “domain”: “global”,“
   reason”: “required”, “message”: “Login Required”, “locationType”: “header”, “
   location”: “Authorization” } ], “code”: 401, “message”: “Login Required” } }
 * Many thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [petebm](https://wordpress.org/support/users/petebm/)
 * (@petebm)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/gmail-error-2/#post-10023203)
 * OK – sorted – I had another SMTP plugin that I was looking at, but hadn’t set
   up with Gmail. Once I deactivated that, your plugin worked fine.

Viewing 1 replies (of 1 total)

The topic ‘GMail error’ 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/)

## Tags

 * [gmail](https://wordpress.org/support/topic-tag/gmail/)

 * 1 reply
 * 1 participant
 * Last reply from: [petebm](https://wordpress.org/support/users/petebm/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/gmail-error-2/#post-10023203)
 * Status: resolved