diff --git a/modules/com_vtiger_workflow/tasks/VTEmailTask.inc b/modules/com_vtiger_workflow/tasks/VTEmailTask.inc
index 51afbd674e25f574b8b6067060e9848887ef8e47..c5b33fb9c1e8f1b4dde85f8f8fa95100f717f58c 100644
--- a/modules/com_vtiger_workflow/tasks/VTEmailTask.inc
+++ b/modules/com_vtiger_workflow/tasks/VTEmailTask.inc
@@ -157,7 +157,7 @@ class VTEmailTask extends VTTask{
 				//There can be multiple attachments for a single comment
 				foreach($fileDetails as $fileDetail){
 					if(!empty($fileDetail)){
-						$path = $fileDetail['path'].$fileDetail['attachmentsid'].'_'.decode_html($fileDetail['storedname']);
+						$path = $fileDetail['path'].$fileDetail['attachmentsid'].'_'.decode_html(!empty($fileDetail['storedname']) ? $fileDetail['storedname'] : $fileDetail['name']);
 						$mailerInstance->AddAttachment($path);
 					}
 				}