Google API Error
-
I followed the directions for setting up SMTP mail sending via Google’s Gmail. I successfully created the Google API project, entered the correct information, and received a client ID and client secret. I pasted both of these into the WP Mail SMTP fields.
The only portion of setup that differed from what the guide said, was that when I pressed “Allow Plugin to send emails using your Google account” I was directed to a “This app isn’t verified. This app hasn’t been verified by Google yet. Only proceed if you know and trust the developer. ” warning. I selected Advanced –> “Go to echogy.net” and continued. Google successfully asked me for permission to allow echogy.net to send mail on my behalf. I pressed allow and was returned to the settings page for the plugin.
However, when trying to send a test email, I received the following:
Versions: WordPress: 4.9.1 WordPress MS: No PHP: 7.0.22-0ubuntu0.16.04.1 WP Mail SMTP: 1.2.1 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 Apache.mod_security: No 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" } }
I repeated the procedure using a different Gmail account and has the exact same results.
The page I need help with: [log in to see the link]
- The topic ‘Google API Error’ is closed to new replies.