• Resolved juangburgos

    (@juangburgos)


    SMTP Status is green after correctly following instructions for getting Gmail Client ID and Secret. Using TLS on port 578. Disable SSL Certificate Verification is unmarked.

    Got the follwing errors.

    ——————————————————————————-
    LOG
    ——————————————————————————-

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

    Fatal error: Uncaught exception ‘LogicException’ with message ‘refresh token must be passed in or set as part of setAccessToken’ in /var/www/html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php:267 Stack trace: #0 /var/www/html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(255): Google_Client->fetchAccessTokenWithRefreshToken(NULL) #1 /var/www/html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(143): Google_Client->refreshToken(NULL) #2 /var/www/html/wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(470): GmailXOAuth2->getOauth64() #3 /var/www/html/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(153): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2)) #4 /var/www/html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1540): PHPMailerOAuth->smtpConnect(Array) #5 /var/www/html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1335): PHPMailer->smtpSend(‘Date: Sun, 22 O…’, ‘f\n’) #6 /var/www/html/wp-content/ in /var/www/html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php on line 267

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, i have the same issue. I traied to generete new Google ID but not works. I traid to use plugin version 1.1.2 but not works. Any suggestion?

    Ohhhhhhhh sorry, my problem is solved!

    Hola Juan, creo que eres Español así que… no sé si es la primera vez que instalas el plugin o ya la tenías, como es mi caso. A mi me empezó a dar problemas hace un tiempo.

    Lo que hice fue volver a generar las Google ID para la aplicación web, también descargué la versión 1.1.2 del plugin y luego lo actualicé.

    A ver, no sé exactamente cómo lo resolví porque al hacer el test desde la página de configuración del propio plugin me salían todos los datos de la conexión y claro, en un principio pensaba que me estaba dando error pero no, como en ningún sitio pone claramente que se mandó el email bien pues… espero que te sea de ayuda, saludos.

    Thread Starter juangburgos

    (@juangburgos)

    Hola @igscomp, gracias por el consejo. Intentare configurar todo desde cero una vez mas. Saludos.

    I have problems again!!! This is my log:

    Warning: Illegal string offset ‘refresh_token’ in /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/main.php on line 681 2017-10-26 17:37:13 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
    2017-10-26 17:37:13 Connection: opened
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “220 smtp.gmail.com ESMTP w190sm1364629wmf.40 – gsmtp”
    2017-10-26 17:37:13 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP w190sm1364629wmf.40 – gsmtp
    2017-10-26 17:37:13 CLIENT -> SERVER: EHLO http://www.emasd.es
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-SIZE 35882577”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-8BITMIME”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-STARTTLS”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-STARTTLS”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-PIPELINING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-CHUNKING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250 SMTPUTF8”
    2017-10-26 17:37:13 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2017-10-26 17:37:13 CLIENT -> SERVER: STARTTLS
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “220 2.0.0 Ready to start TLS”
    2017-10-26 17:37:13 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
    2017-10-26 17:37:13 CLIENT -> SERVER: EHLO http://www.emasd.es
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-SIZE 35882577”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-8BITMIME”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-PIPELINING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250-CHUNKING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “250 SMTPUTF8”
    2017-10-26 17:37:13 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2a00:b5c0:1:0:1c6e:5bff:feb7:dc36]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2017-10-26 17:37:13 Auth method requested: XOAUTH2
    2017-10-26 17:37:13 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
    2017-10-26 17:37:13 CLIENT -> SERVER: QUIT
    2017-10-26 17:37:13 SMTP -> get_lines(): $data is “”
    2017-10-26 17:37:13 SMTP -> get_lines(): $str is “221 2.0.0 closing connection w190sm1364629wmf.40 – gsmtp”
    2017-10-26 17:37:13 SERVER -> CLIENT: 221 2.0.0 closing connection w190sm1364629wmf.40 – gsmtp
    2017-10-26 17:37:13 Connection: closed
    Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Invalid token format’ in /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php:434 Stack trace: #0 /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(138): Google_Client->setAccessToken(‘”{\\”access_toke…’) #1 /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(470): GmailXOAuth2->getOauth64() #2 /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(153): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2)) #3 /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1540): PHPMailerOAuth->smtpConnect(Array) #4 /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1335): PHPMailer->smtpSend(‘Date: Thu, 26 O…’, ‘1\n’) #5 /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/PHPMailer/clas in /hosting/www/emasd.es/public/www/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php on line 434

    Any solution???

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

The topic ‘Asks for Access Token?’ is closed to new replies.