diff --git a/product/ERP5/Document/EmailDocument.py b/product/ERP5/Document/EmailDocument.py index 6cfd15934f4c71fcd835e47c35d19356dd1a0f26..ac05571be73c1c64301f87bba906b420f905186b 100644 --- a/product/ERP5/Document/EmailDocument.py +++ b/product/ERP5/Document/EmailDocument.py @@ -507,7 +507,7 @@ class EmailDocument(File, TextDocument): attachment_list=attachment_list, additional_headers=additional_headers) mail_message = mime_message.as_string() - self.activate().sendMailHostMessage(mail_message) + self.activate(activity='SQLQueue').sendMailHostMessage(mail_message) # Save one of mail messages. self.setData(mail_message)