【发布时间】:2022-08-09 03:38:04
【问题描述】:
想要用新的Symfony/Mailer v6.x 替换已弃用的 SwiftMailer v6.3.0。在旧的 SwiftMailer 中,我收集 failed recipients 以便我知道谁没有收到邮件。
$successfulRecipients = $mailer->send($message, $failedRecipients);
Symfony/Mailer 不是这样工作的。如何在 Symfony/Mailer 中找到失败的收件人?可能使用 TransportExceptionInterface 的 try/catch,但没有具体返回的示例。
如何获取未收到邮件的邮件地址?因为也许他们的邮箱已满或邮件太大?
标签: symfony-mailer