• Hi Plugin Author,

    I am using Avada theme. When I am trying to send test email I am getting the following error:

    Please help

    Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
    Connection: opened
    SMTP -> get_lines(): $data is “”
    SMTP -> get_lines(): $str is “220 smtp.gmail.com ESMTP 31sm10446332otj.26 – gsmtp”
    SERVER -> CLIENT: 220 smtp.gmail.com ESMTP 31sm10446332otj.26 – gsmtp
    CLIENT -> SERVER: EHLO dionesfirstwebsite.com
    SMTP -> get_lines(): $data is “”
    SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [108.167.189.22]”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]”
    SMTP -> get_lines(): $str is “250-SIZE 35882577”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577”
    SMTP -> get_lines(): $str is “250-8BITMIME”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME”
    SMTP -> get_lines(): $str is “250-STARTTLS”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-STARTTLS”
    SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES”
    SMTP -> get_lines(): $str is “250-PIPELINING”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING”
    SMTP -> get_lines(): $str is “250-CHUNKING”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING”
    SMTP -> get_lines(): $str is “250 SMTPUTF8”
    SERVER -> CLIENT: 250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    CLIENT -> SERVER: STARTTLS
    SMTP -> get_lines(): $data is “”
    SMTP -> get_lines(): $str is “220 2.0.0 Ready to start TLS”
    SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
    CLIENT -> SERVER: EHLO dionesfirstwebsite.com
    SMTP -> get_lines(): $data is “”
    SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [108.167.189.22]”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]”
    SMTP -> get_lines(): $str is “250-SIZE 35882577”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577”
    SMTP -> get_lines(): $str is “250-8BITMIME”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME”
    SMTP -> get_lines(): $str is “250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH”
    SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES”
    SMTP -> get_lines(): $str is “250-PIPELINING”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING”
    SMTP -> get_lines(): $str is “250-CHUNKING”
    SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING”
    SMTP -> get_lines(): $str is “250 SMTPUTF8”
    SERVER -> CLIENT: 250-smtp.gmail.com at your service, [108.167.189.22]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    Auth method requested: XOAUTH2
    Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
    CLIENT -> SERVER: QUIT
    SMTP -> get_lines(): $data is “”
    SMTP -> get_lines(): $str is “221 2.0.0 closing connection 31sm10446332otj.26 – gsmtp”
    SERVER -> CLIENT: 221 2.0.0 closing connection 31sm10446332otj.26 – gsmtp
    Connection: closed

    Fatal error: Uncaught exception ‘Google_Auth_Exception’ with message ‘Error refreshing the OAuth2 token, message: ‘{ “error” : “unauthorized_client” }” in /home3/dioneevans/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Auth/OAuth2.php:363 Stack trace: #0 /home3/dioneevans/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Auth/OAuth2.php(278): Google_Auth_OAuth2->refreshTokenRequest(Array) #1 /home3/dioneevans/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(457): Google_Auth_OAuth2->refreshToken(‘1/1CtJhRohyYpxw…’) #2 /home3/dioneevans/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(142): Google_Client->refreshToken(‘1/1CtJhRohyYpxw…’) #3 /home3/dioneevans/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(446): GmailXOAuth2->getOauth64() #4 /home3/dioneevans/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(153): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(Gm in /home3/dioneevans/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Auth/OAuth2.php on line 363

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

    (@knath632)

    Hi naa986,

    Here is the info:
    2016 x86_64
    PHP version: 5.6.29
    WordPress version: 4.7
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.19.7, NSS/3.21 Basic ECC

    • This reply was modified 8 years, 3 months ago by knath632.
Viewing 1 replies (of 1 total)
  • The topic ‘Connection: opening to smtp.gmail.com:587, timeout=300, options=array () Connect’ is closed to new replies.