mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
Merge pull request #5 from swaiba/master
BUGFIX send correct mimie types for attached files.
This commit is contained in:
commit
51dfce8680
@ -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