Asks for Access Token?
-
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: closedFatal 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
The topic ‘Asks for Access Token?’ is closed to new replies.