• MDC2957

    (@mdc2957)


    I’m using this plugin on two hosts and it’s working fine. On this third host, it’s not working, and I cannot tell why?

    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 60sm14671253wrg.60 - gsmtp"
    SERVER -> CLIENT: 220 smtp.gmail.com ESMTP 60sm14671253wrg.60 - gsmtp
    CLIENT -> SERVER: EHLO www.mydomain.com
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [185.27.134.36]"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]"
    SMTP -> get_lines(): $str is "250-SIZE 35882577"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]250-SIZE 35882577"
    SMTP -> get_lines(): $str is "250-8BITMIME"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]250-SIZE 35882577250-8BITMIME"
    SMTP -> get_lines(): $str is "250-STARTTLS"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]250-SIZE 35882577250-8BITMIME250-STARTTLS"
    SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]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, [185.27.134.36]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, [185.27.134.36]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
    SMTP -> get_lines(): $str is "250 SMTPUTF8"
    SERVER -> CLIENT: 250-smtp.gmail.com at your service, [185.27.134.36]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 www.mydomain.com
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [185.27.134.36]"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]"
    SMTP -> get_lines(): $str is "250-SIZE 35882577"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]250-SIZE 35882577"
    SMTP -> get_lines(): $str is "250-8BITMIME"
    SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [185.27.134.36]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, [185.27.134.36]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, [185.27.134.36]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, [185.27.134.36]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, [185.27.134.36]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, [185.27.134.36]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 60sm14671253wrg.60 - gsmtp"
    SERVER -> CLIENT: 221 2.0.0 closing connection 60sm14671253wrg.60 - gsmtp
    Connection: closed

    Can you tell anything from this log from the test email attempt?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, It doesn’t specifically say why the connection was closed. Did you contact your host to make sure that port 587 is open and supports TLS encryption? Please copy and paste content from the “Server Info” tab so I can take a look.

    Thread Starter MDC2957

    (@mdc2957)

    I was going to do the revoke procedure, however, the revoke screen doesn’t list all the projects where I am using the plugin. I mentioned I’m using it on two other domains right now. So I’m not sure if revoking will revoke those domains. Might have to ask google support about that.

    Host said TLS and port number are ok.

    Here’s a question – shouldn’t I be allowed to use any email address associated with my google apps gmail for my domain for sending, even if it is not the same domain where the email is originating?

    Here’s what it says under server info:

    OS: Linux freeweb16.byetcluster.com 2.6.32-673.26.1.lve1.4.18.el6.x86_64 #1 SMP Fri Oct 21 11:58:14 EDT 2016 x86_64
    PHP version: 7.0.16
    WordPress version: 4.7.3
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.48.0, OpenSSL/1.0.1e
    
    • This reply was modified 8 years ago by MDC2957.
    Thread Starter MDC2957

    (@mdc2957)

    Have no idea why, but when I tried WP Mail SMTP plugin, it worked on the first try. Perhaps because the domain is different, I don’t know. I’ll keep using your plugin on my other two sites though.

    Plugin Author Noor Alam

    (@naa986)

    Everything looks good. So I’m not sure what’s causing this issue. You can try doing a reset and see how it goes.

    I don’t think it will revoke access to your other apps (unless you are using the same app for your three domains). Didn’t you create a separate app for each site?

    P.S. I don’t think WP Mail SMTP works the same way. It directly uses your username and password to connect to your account and send email (which is not very secure).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working on this host?’ is closed to new replies.