Unable to connect to SMTP server

前端 未结 1 1148
孤独总比滥情好
孤独总比滥情好 2021-01-26 16:11

I have a server with mail support, say example.com. I configured the server and added MX records via cpanel, so that I can receive and send mails via outlook.

相关标签:
1条回答
  • 2021-01-26 17:02

    Finally I just solved the issue by replacing some of the settings as below and it worked :).

        $mail->Host       = "smtp-mail.outlook.com"; // SMTP server example
        $mail->Port       = 587;  
        $mail->SMTPSecure = 'tls';
    
    0 讨论(0)
提交回复
热议问题