0
我想用zip文件附件使用zend框架發送電子郵件。但我總是把它發送到我的電子郵件的垃圾目錄。附件在zend框架中的垃圾郵件
這裏是我使用的附加代碼。
我不知道什麼問題請幫我找到這個。非常感謝。
$mail = new Zend_Mail();
$mail->setType(Zend_Mime::MULTIPART_RELATED);
$mail->setBodyHtml($email_body);
$mail->setFrom('[email protected]', 'Stephen Nolan');
$mail->addTo($_POST['email'], 'Kamalifestyle Client');
$mail->setSubject('Thanks From Kamalifestyle, See Attachment');
$attachment = $mail->createAttachment(file_get_contents($currentFile));
$attachment->type = 'zip';
$attachment->filename = "completebook.zip";
if ($mail->send()) {
unlink($currentFile);
echo 'Message Sent';
?>
<?php
} else {
echo 'Error Sending ';
}
謝謝,我通過在谷歌搜索搜索zip MIME類型。 – 2013-04-09 12:59:41