authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]

前端 未结 3 1521
情书的邮戳
情书的邮戳 2021-01-03 13:51

i am trying to send email with attachment in PHP using SMTP and PEAR but getting the error as \"authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Rea

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 14:33

    Here example code how to send tls/ssl emails with php to gmail smtp servers https://github.com/breakermind/PhpMimeParser/blob/master/PhpSmtpSslSocketClient.php It very simple with php stream sockets (**You need allow in mail.com panel send email from external apps **)

提交回复
热议问题