Skip to content
Snippets Groups Projects
Commit e8ba2598 authored by Uma's avatar Uma
Browse files

Fixes #1234 Attachments in Emails should have proper filename display

parent 0c59cc6f
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ class Emails_Record_Model extends Vtiger_Record_Model {
foreach($attachments as $attachment) {
$fileNameWithPath = $rootDirectory.$attachment['path'].$attachment['fileid']."_".$attachment['storedname'];
if(is_file($fileNameWithPath)) {
$mailer->AddAttachment($fileNameWithPath, $attachment['storedname']);
$mailer->AddAttachment($fileNameWithPath, $attachment['attachment']);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment