• This is the debugging info:

    The SMTP debugging output is shown below:

    2017-06-21 17:26:53 Connection: opening to smtp.office365.com:587, timeout=300, options=array (
    )
    2017-06-21 17:27:49 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to smtp.office365.com:587 (Network is unreachable)
    2017-06-21 17:27:49 SMTP ERROR: Failed to connect to server: Network is unreachable (101)
    2017-06-21 17:27:49 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

  • The topic ‘SMTP ERROR: Failed to connect to server:’ is closed to new replies.