@reggie21
Currently, I see that you are using Mailer: mail. Please make sure that the Gmail mailer is active. Have you clicked the “Allow…” button?
I made sure of that.
Im getting this error now after authorizing:
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”
}
}
Your FROM email address in plugin settings should be the same as the one you have used to create a Google App in Console with Gmail API to get Client ID/Secret.
Hi – We have verified that the email address in plugin settings is the same as the one we used to create a Google App in Console with Gmail API to get Client ID/Secret.
Also – if we press the orange save settings button in the WP Mail SMTP plugin settings the “Allow plugin to send emails using your Google account” button becomes active again as if our setting are lost and did not save.
Here is the error message when we do a test:
Versions:
WordPress: 4.9.1
WordPress MS: No
PHP: 5.6.31
WP Mail SMTP: 1.2.2
Params:
Mailer: gmail
Constants: No
Client ID/Secret: Yes
Auth Code: No
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”
}
}
@reggie21
This issues was fixed in 1.2.3 (we won’t reset connection to Google after Save Changes was clicked, so Allow won’t appear everytime you save settings in a plugin).