FIX 10.0 - when the mime file name is different from the filesystem name, the attachment name should be the mime filename
This commit is contained in:
parent
ffb3d810de
commit
134a47a93f
@ -463,6 +463,9 @@ class CMailFile
|
||||
{
|
||||
//$this->message->attach(Swift_Attachment::fromPath($filename_list[$i],$mimetype_list[$i]));
|
||||
$attachment = Swift_Attachment::fromPath($filename_list[$i], $mimetype_list[$i]);
|
||||
if (!empty($mimefilename_list[$i])) {
|
||||
$attachment->setFilename($mimefilename_list[$i]);
|
||||
}
|
||||
$this->message->attach($attachment);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user