diff --git a/modules/Emails/models/Record.php b/modules/Emails/models/Record.php
index cd19210eba9344afd7158876fec4755e26d0025b..7e636eb73315c643c6bbfa47b9fc0891a468bfa7 100644
--- a/modules/Emails/models/Record.php
+++ b/modules/Emails/models/Record.php
@@ -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']);
                     }
                 }
             }