• Resolved gluecklichezwerge

    (@gluecklichezwerge)


    Hello,

    when trying to send testmail I am getting error code 400. I already looked up the issue and tried everything to limit possible reasons, because I don’t it’s a wrong or missing client ID.
    Here the error:

    Versions:
    WordPress: 4.9.4
    WordPress MS: No
    PHP: 7.2.2
    WP Mail SMTP: 1.2.5
    
    Params:
    Mailer: gmail
    Constants: No
    Client ID/Secret: Yes
    Auth Code: Yes
    Access Token: Yes
    
    Server:
    OpenSSL: Yes
    PHP.allow_url_fopen: No
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): Yes
    
    Debug:
    Error while sending via Gmail mailer: {
    "error": {
    "errors": [
    {
    "domain": "global",
    "reason": "failedPrecondition",
    "message": "Bad Request"
    }
    ],
    "code": 400,
    "message": "Bad Request"
    }
    }

    Configuration has been done by simply following your instructions. No other SMTP or caching software is installed. Everything is up-to-date. Somehow I am assuming it might have sth to do with security restrictions I added. See error code line: PHP.allow_url_fopen: No
    I already went through my .htaccess and functions.php to look for security restrictions I set. Neither it was the implemented 6g firewall or xss-header configuration, nor the PHP.allow_url_fopen setting. I changed to ‘Yes’, but with same result.
    If you have other ideas leading to the goal, they are highly appreciated. ??

    Thanks for your help,

    -Bj?rn

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter gluecklichezwerge

    (@gluecklichezwerge)

    Hm, no reply until now, very sad.
    I decided to go back to php mail in the meantime. In the process I realized issues with sending mails to some mail providers and did a research on the errors given. Maybe this was the reason for my issues with the WP Mail SMTP plugin as well.
    In the end I found out that I had a bad reverse DNS record (PTR) which I needed to change. That being done and everything was working fine.

Viewing 1 replies (of 1 total)
  • The topic ‘Gmail SMTP Error’ is closed to new replies.