我使用的是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'],我没有收到邮件中的第一张图片。