【发布时间】:2021-10-14 07:54:47
【问题描述】:
我正在从 SwiftMailer 退回到 PHPMailer。
在 SwiftMailer 中,每当您想将图像合并到 HTML 电子邮件中时,您必须在实例化的 Swift_Message 对象中为每个图像插入以下代码行:
$email_msg->embed( Swift_Image::fromPath( $image_path ) );
我需要在 PHPMailer 中做类似的事情吗?如果是这样,我该怎么做?
我在解决此问题的文档中找不到任何内容。
谢谢!
【问题讨论】:
标签: php email phpmailer swiftmailer