• Resolved jhacking1

    (@jhacking1)


    I can’t get it to send email. From other peoples examples it should be using 250-“smtp.gmail.com” but mine is using my server “250-srv.[servername].com” to try and send. How can I fix this?

    Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
    Connection: opened
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "220-srv.[servername].com ESMTP Exim 4.89 #1 Tue, 14 Nov 2017 14:18:45 -0500 "
    SMTP -> get_lines(): $data is "220-srv.[servername].com ESMTP Exim 4.89 #1 Tue, 14 Nov 2017 14:18:45 -0500 "
    SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "
    SMTP -> get_lines(): $data is "220-srv.[servername].com ESMTP Exim 4.89 #1 Tue, 14 Nov 2017 14:18:45 -0500 220-We do not authorize the use of this system to transport unsolicited, "
    SMTP -> get_lines(): $str is "220 and/or bulk e-mail."
    SERVER -> CLIENT: 220-srv.[servername].com ESMTP Exim 4.89 #1 Tue, 14 Nov 2017 14:18:45 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
    CLIENT -> SERVER: EHLO www.[domainname].com
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]"
    SMTP -> get_lines(): $str is "250-SIZE 52428800"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800"
    SMTP -> get_lines(): $str is "250-8BITMIME"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME"
    SMTP -> get_lines(): $str is "250-PIPELINING"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME250-PIPELINING"
    SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN"
    SMTP -> get_lines(): $str is "250-STARTTLS"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250-STARTTLS"
    SMTP -> get_lines(): $str is "250 HELP"
    SERVER -> CLIENT: 250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
    CLIENT -> SERVER: STARTTLS
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "220 TLS go ahead"
    SERVER -> CLIENT: 220 TLS go ahead
    CLIENT -> SERVER: EHLO www.[domainname].com
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]"
    SMTP -> get_lines(): $str is "250-SIZE 52428800"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800"
    SMTP -> get_lines(): $str is "250-8BITMIME"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME"
    SMTP -> get_lines(): $str is "250-PIPELINING"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME250-PIPELINING"
    SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN"
    SMTP -> get_lines(): $data is "250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN"
    SMTP -> get_lines(): $str is "250 HELP"
    SERVER -> CLIENT: 250-srv.[servername].com Hello www.[domainname].com [64.71.78.39]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250 HELP
    Auth method requested: XOAUTH2
    Auth methods available on the server: PLAIN,LOGIN
    SMTP Error: Could not authenticate.
    CLIENT -> SERVER: QUIT
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "221 srv.[servername].com closing connection"
    SERVER -> CLIENT: 221 srv.[servername].com closing connection
    Connection: closed
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Server info

    OS: Linux srv.[servername].com 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64
    PHP version: 5.6.32
    WordPress version: 4.8.3
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.55.1, OpenSSL/1.0.2m
    

    Please help

  • The topic ‘Will not use 250-smtp.gmail.com’ is closed to new replies.