• Hello, I’m having an error where contact form 7 does not send email to my GoDaddy’s Office 365 email, and they suggest me to use this plugin instead. I tried to setup the Mail SMTP but I’m having an error. Pretty sure I do not have any configuration error and typo etc. The error shown like this when I’m sending a test mail:

    
    Versions:
    WordPress: 4.9.7
    WordPress MS: No
    PHP: 7.2.6
    WP Mail SMTP: 1.3.3
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: smtp.office365.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: Yes
    Apache.mod_security: No
    SMTP Debug:
    2018-07-27 06:47:52	Connection: opening to smtp.office365.com:587, timeout=300, options=array (
    )
    2018-07-27 06:48:01	Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to smtp.office365.com:587 (Connection refused)
    2018-07-27 06:48:01	SMTP ERROR: Failed to connect to server: Connection refused (111)
    2018-07-27 06:48:01	SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    

    and this is the screenshot: https://prnt.sc/kbm2fz

    Thanks for the help.

Viewing 1 replies (of 1 total)
  • I’m having exactly the same problem as this on TSO Host, who claim that all the ports are unblocked. I’ve also checked with Office 365 that their IP hasn’t been blacklisted.

    One things I’ve done is modified the plugin to add “gethostbyname” function calls around the entered value, which then means the IP address is translated and I can see it in the logs, this has been useful in getting me slightly different messaging, but still nothing that works.

    In your case, GoDaddy block SMTP pors (25 and 587) and you have to send email out through their relay…

    https://stackoverflow.com/questions/21841834/phpmailer-godaddy-server-smtp-connection-refused

Viewing 1 replies (of 1 total)
  • The topic ‘Could not connect to the SMTP host.’ is closed to new replies.