2011-07-28 59 views
2

我使用PHPMailer類,它不支持多圖像上傳。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」]的郵件,我沒有得到在郵件中第一張圖像。

+0

你使用PHP郵件的V5? –

回答