• Resolved terabytehq

    (@terabytehq)


    Hi,

    I hope someone can help with this?
    I am new to webdesign and all things wordpress and I’m having a little trouble getting the WP Mail SMTP plugin to work with ‘Other SMTP’ selected and using smtp.office365.com as the host.

    I have populated all of the fields with the correct information and I know that the credentials are correct.

    Sending a test email throws this error report right back at me…

    Versions:
    WordPress: 5.8.3
    WordPress MS: No
    PHP: 7.4.26
    WP Mail SMTP: 3.2.1
    
    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: OpenSSL 1.1.1d 10 Sep 2019
    Apache.mod_security: No
    
    Debug:
    Email Source: WP Mail SMTP
    Mailer: Other SMTP
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    
    SMTP Debug:
    2022-02-08 19:55:32 Connection: opening to smtp.office365.com:587, timeout=300, options=array()
    
    2022-02-08 19:55:35 Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.office365.com:587 (Network is unreachable) [/home/fs7dfeztrlrj/public_html/transporterheaven.co.uk/wp-includes/PHPMailer/SMTP.php line 388]
    
    2022-02-08 19:55:35 SMTP ERROR: Failed to connect to server: Network is unreachable (101)
    
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    I am using GoDaddy as my webhost and they haven’t been able to offer a solution.
    I have enabled SMTP on the email account.

    Am I doing anything wrong and can someone educate me on the significance of the SMTP.php file (line 388)?
    Opening SMTP.php and looking at line 388 gives me this… ‘$host . ‘:’ . $port,’

    Many thanks in advance for any help that can be offered.

    Gavin

Viewing 1 replies (of 1 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @terabytehq,

    Thanks for reaching out! If you have enabled Multi-Factor Authentication (2 Factor Authentication) on your Office 365 email account, you need to set up an App Password within your Office 365 account settings and then you can use that App Password under your WP Mail SMTP -> Settings -> SMTP Password area.

    In case it helps, try following our guide here as well.

    Could you please give it a try and let us know how it goes. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘SMTP connect() failed’ is closed to new replies.