• Resolved qornflex

    (@ortofon)


    All is set correctly and the SMTP Status is green (connected). But I’m unable to send an email. I made this on one of my other website and it’s going well… but not for this one 🙁

    Any idea?

    Here is the log of the error:

    PHP Fatal error: Uncaught Google_Auth_Exception: Error refreshing the OAuth2 token, message: ‘{
    “error” : “invalid_request”,
    “error_description” : “Missing required parameter: refresh_token”
    }’ in D:\Websites\br9732.com\wp-content\plugins\gmail-smtp\google-api-php-client\src\Google\Auth\OAuth2.php:363
    Stack trace:
    #0 D:\Websites\br9732.com\wp-content\plugins\gmail-smtp\google-api-php-client\src\Google\Auth\OAuth2.php(276): Google_Auth_OAuth2->refreshTokenRequest(Array)
    #1 D:\Websites\br9732.com\wp-content\plugins\gmail-smtp\google-api-php-client\src\Google\Client.php(457): Google_Auth_OAuth2->refreshToken(NULL)
    #2 D:\Websites\br9732.com\wp-content\plugins\gmail-smtp\class.phpmaileroauthgoogle.php(142): Google_Client->refreshToken(NULL)
    #3 D:\Websites\br9732.com\wp-content\plugins\gmail-smtp\PHPMailer\class.smtp.php(471): GmailXOAuth2->getOauth64()
    #4 D:\Websites\br9732.com\wp-content\plugins\gmail-smtp\class.phpmaileroauth.php(152): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2))
    #5 D:\Websites\br9732. in D:\Websites\br9732.com\wp-content\plugins\gmail-smtp\google-api-php-client\src\Google\Auth\OAuth2.php on line 363

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter qornflex

    (@ortofon)

    And here, the server info:

    OS: Windows NT NS413668 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) AMD64
    PHP version: 7.1.2
    WordPress version: 4.7.5
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.51.0, OpenSSL/1.0.2k

    Thread Starter qornflex

    (@ortofon)

    Ok, I revoked the access and grant it again (SMTP STATUS: connected)
    But now, I have this:

    SMTP Error: Could not authenticate.
    CLIENT -> SERVER: QUIT
    SMTP -> get_lines(): $data is “”
    SMTP -> get_lines(): $str is “535-5.7.8 Username and Password not accepted. Learn more at”
    SMTP -> get_lines(): $data is “535-5.7.8 Username and Password not accepted. Learn more at”
    SMTP -> get_lines(): $str is “535 5.7.8 https://support.google.com/mail/?p=BadCredentials r10sm593173wmd.9 – gsmtp”
    SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials r10sm593173wmd.9 – gsmtp
    SMTP ERROR: QUIT command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials r10sm593173wmd.9 – gsmtp
    Connection: closed
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Plugin Author Noor Alam

    (@naa986)

    Thread Starter qornflex

    (@ortofon)

    Unfortunately, all my domains are verified.
    I still have this issue 🙁

    All is going well on my quentinlengele.com website.
    But when I want to do the same on another website of mine (br9732.com), fatal errors occurs like explained in the previous posts.

    That’s really blocking 🙁

    • This reply was modified 9 years ago by qornflex.
    Plugin Author Noor Alam

    (@naa986)

    Did you create a separate project/app for each domain?

    Thread Starter qornflex

    (@ortofon)

    Ahw! That’s it. I had only one app with multiple Authorized redirect URIs…
    I’m really sorry.

    Thank you very much for your time!

    I am using a no-reply g suite address for multiple clients/websites. It says I have 9 projects remaining in my quota (I have used 3). I thought maybe I could use the same project/app for multiple urls/websites so as to not reach my quota as I will have more than 9 more websites very soon. I get the errors described in this thread and it appears the solution is to do a new project. Is there a way to use the same project? I am just thinking of not using up my quota if possible. Google Cloud Services say that if the quota is reached, additional projects may be requested but a price may be involved.

    Is there anyway to use the same project with multiple URLs?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal Error (500) when sending test mail’ is closed to new replies.