none
Office365 connection wordpress smtp

    Question

  • Hello,

    I have read your blog for setting up smtp with office365 here:

     https://blogs.msdn.microsoft.com/azureossds/2017/04/20/an-example-of-setting-wordpress-email-with-office-365-smtp/#comment-32015

    But its giving me this error, I am unable to find any solution for this issue. 

    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
    SMTP Debug:
    2018-02-07 10:53:56 Connection: opening to smtp.office365.com:587, timeout=300, options=array ( ) 2018-02-07 10:54:05 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-02-07 10:54:05 SMTP ERROR: Failed to connect to server: Connection refused (111) 2018-02-07 10:54:05 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting


    Wednesday, February 07, 2018 11:21 AM