• Hi,

    I have configured the oauth correctly, but when I send a test e-mail I get the following error:

    CLIENT -> SERVER: EHLO ~^(.*)$
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection."
    SMTP -> get_lines(): $data is "501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection."
    SMTP -> get_lines(): $str is "501 5.5.4 https://support.google.com/mail/?p=helo ia7sm104254691wjb.23 - gsmtp"
    SERVER -> CLIENT: 501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection.501 5.5.4 https://support.google.com/mail/?p=helo ia7sm104254691wjb.23 - gsmtp
    SMTP ERROR: EHLO command failed: 501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection.501 5.5.4 https://support.google.com/mail/?p=helo ia7sm104254691wjb.23 - gsmtp
    CLIENT -> SERVER: HELO ~^(.*)$
    SERVER -> CLIENT: 
    SMTP ERROR: HELO command failed: 
    SMTP NOTICE: EOF caught while checking if connected
    Connection: closed
    SMTP Error: Could not connect to SMTP host.
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    

    Any suggestion?

    Thanks,
    Stefano

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

    (@naa986)

    Hi, Is this all you get in the email log? What port and connection type are using? Please provide the content of the “Server Info” tab so I can take a look.

    Thread Starter dedotombo

    (@dedotombo)

    Here you are the complete email log.

    
    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 gj6sm7386594wjb.29 - gsmtp"
    SERVER -> CLIENT: 220 smtp.gmail.com ESMTP gj6sm7386594wjb.29 - gsmtp
    CLIENT -> SERVER: EHLO ~^(.*)$
    SMTP -> get_lines(): $data is ""
    SMTP -> get_lines(): $str is "501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection."
    SMTP -> get_lines(): $data is "501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection."
    SMTP -> get_lines(): $str is "501 5.5.4 https://support.google.com/mail/?p=helo gj6sm7386594wjb.29 - gsmtp"
    SERVER -> CLIENT: 501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection.501 5.5.4 https://support.google.com/mail/?p=helo gj6sm7386594wjb.29 - gsmtp
    SMTP ERROR: EHLO command failed: 501-5.5.4 HELO/EHLO argument "~^(.*)$" invalid, closing connection.501 5.5.4 https://support.google.com/mail/?p=helo gj6sm7386594wjb.29 - gsmtp
    CLIENT -> SERVER: HELO ~^(.*)$
    SERVER -> CLIENT: 
    SMTP ERROR: HELO command failed: 
    SMTP NOTICE: EOF caught while checking if connected
    Connection: closed
    SMTP Error: Could not connect to SMTP host.
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    

    The server info is below.

    
    OS: Linux server 4.2.0-30-generic #35~14.04.1-Ubuntu SMP Fri Feb 19 14:48:13 UTC 2016 x86_64
    PHP version: 5.5.9-1ubuntu4.14
    WordPress version: 4.6.1
    WordPress multisite: Yes
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.35.0, OpenSSL/1.0.1f
    

    Thanks for the help.

    • This reply was modified 7 years, 10 months ago by dedotombo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HELO/EHLO argument is invalid’ is closed to new replies.