ensure correct mime type of attached file - this was failing because Mimesweeper not liking the "Content-Type" and they see the following warning:

Bad Data
Recognize SMTP messages
The Content-Type header is invalid - Word document; name="SOMEDOCUEMNT.doc"
This commit is contained in:
swaiba 2011-11-25 16:48:42 +00:00
parent 5ca720b508
commit cbcd6c9eff

View File

@ -714,7 +714,7 @@ JS
if($attachments){
foreach($attachments as $file){
if($file->ID != 0) {
$email->attachFile($file->Filename,$file->Filename, $file->getFileType());
$email->attachFile($file->Filename,$file->Filename, HTTP::getMimeType($file->Filename));
}
}
}