【问题标题】:multiple image attachment in PHPMailerPHPMailer中的多个图像附件
【发布时间】:2011-07-28 06:27:02
【问题描述】:

我用的是PHPMailer类,不支持多图上传。

$mailer = new phpmailer();
$mailer->IsMail();

$mailer->Subject = 'NewsLetter Request';            
$mailer->AddAddress('myemailid', 'Name');
$mailer->message_type =  "attachments";

$mailer->AddAttachment($_FILES["logo"]["tmp_name"],$_FILES["logo"]["name"]);
$mailer->AddAttachment($_FILES["logo2"]["tmp_name"],$_FILES["logo2"]["name"]);

$mailer->Body = $htmlBody;
$mailer->isHTML(true);

如果我发送邮件,我会收到最后一个附加的图像 $_FILES['logo2'] ,我不会收到邮件中的第一张图像。

【问题讨论】:

  • 你使用的是 php mailer v5 吗?

标签: php email phpmailer image-uploading


【解决方案1】:

如果您使用的是 mailer v5 Multiple attachments not going with PHPmailer v5,请查看此解决方案

【讨论】:

  • 我使用的是phpMailer 1.60版本
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-11-10
  • 1970-01-01
  • 2015-11-29
  • 1970-01-01
相关资源
最近更新 更多