PHPMailer to use Gmail as SMTP server.Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host

前端 未结 4 1865
你的背包
你的背包 2020-12-01 18:30

i am trying to use phpMailer to send confirmation messages to users via email. my code is this:



        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 19:27

    This page has code the author claims "worked flawlessly".

    The only real difference I see between his and yours is that his has:

    $mail->Mailer = "smtp";
    

    I guess I would start with his code exactly to see if it works, and then debug from there.

提交回复
热议问题