Replies: 0
I have configured all step by step as shown in this article Gmail documentation , but at this step when i clicked on Allow then i returned to a 404 error page on my site, and given following step not done,
“When you’re ready, click the Allow button to proceed.
Grant permission for site to send email
Next, you’ll be returned to your WP Mail SMTP settings and a success message will be displayed. Now that the connection is complete, you’re ready to send a test email under the Email Test tab.”
And when i send test mail then its showing as given below
There was a problem while sending a test email. Related debugging output is shown below:
Versions:
WordPress: 4.9.5
WordPress MS: No
PHP: 7.0.23
WP Mail SMTP: 1.2.5Params:
Mailer: gmail
Constants: No
Client ID/Secret: Yes
Auth Code: No
Access Token: NoServer:
OpenSSL: Yes
PHP.allow_url_fopen: Yes
PHP.stream_socket_client(): Yes
PHP.fsockopen(): Yes
PHP.curl_version(): Yes
Apache.mod_security: NoDebug:
Error while sending via Gmail mailer: {
“error”: {
“errors”: [
{
“domain”: “global”,
“reason”: “required”,
“message”: “Login Required”,
“locationType”: “header”,
“location”: “Authorization”
}
],
“code”: 401,
“message”: “Login Required”
}
}