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:
Florian Mortgat 2020-09-01 15:36:35 +02:00
parent ffb3d810de
commit 134a47a93f

View File

@ -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);
}
}