• Resolved jnchristi

    (@jnchristi)


    Here is the log file I got when trying to send a test email:

    2019-02-06 03:21:54 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( ‘ssl’ => array ( ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true, ),)
    2019-02-06 03:21:54 Connection: opened
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “220 smtp.gmail.com ESMTP q1sm6518265pfb.96 – gsmtp”
    2019-02-06 03:21:54 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP q1sm6518265pfb.96 – gsmtp
    2019-02-06 03:21:54 CLIENT -> SERVER: EHLO clootrack.com
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [13.233.48.174]”
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250-SIZE 35882577”
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250-8BITMIME”
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250-STARTTLS”
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-STARTTLS”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250-PIPELINING”
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250-CHUNKING”
    2019-02-06 03:21:54 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING”
    2019-02-06 03:21:54 SMTP -> get_lines(): $str is “250 SMTPUTF8”
    2019-02-06 03:21:54 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2019-02-06 03:21:54 CLIENT -> SERVER: STARTTLS
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “220 2.0.0 Ready to start TLS”
    2019-02-06 03:21:55 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
    2019-02-06 03:21:55 CLIENT -> SERVER: EHLO clootrack.com
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250-smtp.gmail.com at your service, [13.233.48.174]”
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250-SIZE 35882577”
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250-8BITMIME”
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH”
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES”
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250-PIPELINING”
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250-CHUNKING”
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [13.233.48.174]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “250 SMTPUTF8”
    2019-02-06 03:21:55 SERVER -> CLIENT: 250-smtp.gmail.com at your service,

    [13.233.48.174]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
    2019-02-06 03:21:55 Auth method requested: XOAUTH2
    2019-02-06 03:21:55 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
    2019-02-06 03:21:55 CLIENT -> SERVER: QUIT
    2019-02-06 03:21:55 SMTP -> get_lines(): $data is “”
    2019-02-06 03:21:55 SMTP -> get_lines(): $str is “221 2.0.0 closing connection q1sm6518265pfb.96 – gsmtp”
    2019-02-06 03:21:55 SERVER -> CLIENT: 221 2.0.0 closing connection q1sm6518265pfb.96 – gsmtp
    2019-02-06 03:21:55 Connection: closed

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the same issue… I also notice in my php log an error with the Access Token.
    Maybe you have the same log as well.

    [Tue Feb 12 12:38:18.750547 2019] [php7:error] [pid 25038] [client 190.146.23.9:39167] PHP Fatal error: Uncaught LogicException: refresh token must be passed in or set as part of setAccessToken in /wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php:267\nStack trace:\n#0 /wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(255): Google_Client->fetchAccessTokenWithRefreshToken(NULL)\n#1 /wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(150): Google_Client->refreshToken(NULL)\n#2 /wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(475): GmailXOAuth2->getOauth64()\n#3 /wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(152): SMTP->authenticate('', '', 'XOAUTH2', '', '', Object(GmailXOAuth2))\n#4 /wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1542): PHPMailerOAuth->smtpConnect(Array)\n#5 /wp-content/plugins/gmail-smtp/PHPMail in /wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php on line 267, referer: http://atlantacenterforhypnosistraining.com/contact-us/

    i hope this additional information will help someone to find the solution for this issue.

    • This reply was modified 7 years, 3 months ago by nichagane.
    • This reply was modified 7 years, 3 months ago by nichagane.

    I can fix my problem by demonstrate the ownership of my domain in the Google API page, then i had to revoke the access in the settings of the plugin and validate the configuration again.

    • This reply was modified 7 years, 3 months ago by nichagane.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sending Email keeps loading’ is closed to new replies.