📌  相关文章
📜  #file: "媒体印记软件项目sookh vendor swiftmailer swiftmailer lib classes Swift Transport AbstractSmtpTransport.php" - 任何代码示例

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

代码示例1
$transport = (new Swift_SmtpTransport($host, $port))
    ->setUsername($user)
    ->setPassword($pass); 
$try {
    $transport->start();
} catch (\Swift_TransportException $ex) {
    echo $ex->getMessage();
    return; //whatever you want to do.
}
....