From cfc394d112f36797a30a56341b787a6a97f3634b Mon Sep 17 00:00:00 2001 From: Kevin von Spiczak <kevin.spiczak@sgalinski.de> Date: Mon, 2 Mar 2020 13:40:51 +0100 Subject: [PATCH] [TASK] add comment for addAttachment --- Classes/Service/MailTemplateService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/Service/MailTemplateService.php b/Classes/Service/MailTemplateService.php index 57e1f152..9bf4ef2a 100644 --- a/Classes/Service/MailTemplateService.php +++ b/Classes/Service/MailTemplateService.php @@ -583,6 +583,8 @@ class MailTemplateService { } /** + * IMPORTANT: make sure to set $this->>ignoreMailQueue(TRUE), if you're using this method to add an attachment! + * Otherwise the attachment is ignored when sending the mail via mail queue. * @param Swift_OutputByteStream $data * @param string $filename * @param string $contentType -- GitLab