mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
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:
parent
5ca720b508
commit
cbcd6c9eff
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user