Could not connect to SMTP host. Message could not be sent

前端 未结 4 838
清酒与你
清酒与你 2021-01-29 05:21

When I sent email from server then it gives me two error -

SMTP Error: Could not connect to SMTP host. Message could not be sent. Mailer Error: SMTP Er

4条回答
  •  后悔当初
    2021-01-29 06:04

    First logout the your gmail account

    then open this url use this yrl

    click the continue button

    Next change the port and SMTPsecure

    $mail->SMTPSecure = "tls";
    $mail->Port = 587;
    

提交回复
热议问题