📌  相关文章
📜  预期响应代码 250,但得到代码“530”,消息“530 必须首先发出 STARTTLS 命令.” - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:54.449000             🧑  作者: Mango

代码示例1
//encrytion should be set while using email library
$transport = (new \Swift_SmtpTransport($smtp_server, $smtp_port))
                        ->setUsername($smtp_username)
                        ->setPassword($smtp_password)
                        ->setEncryption('tls');  //important to set encryption here.