From 1950c062b03288b3b97b89ef09c594cd3ec09902 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 20 Nov 2014 02:40:50 -0400 Subject: [PATCH] Update document attribute name when sending documents via email --- mayan/apps/mailer/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/mailer/tasks.py b/mayan/apps/mailer/tasks.py index b0b277555b..9e7b6d7ea3 100644 --- a/mayan/apps/mailer/tasks.py +++ b/mayan/apps/mailer/tasks.py @@ -14,7 +14,7 @@ def task_send_document(subject_text, body_text_content, sender, recipient, docum documents = [Document.objects.get(pk=document_id) for document_id in document_ids] for document in documents: descriptor = document.open() - email_msg.attach(document.filename, descriptor.read(), document.file_mimetype) + email_msg.attach(document.label, descriptor.read(), document.file_mimetype) descriptor.close() email_msg.send()