[
http://jira.magnolia-cms.com/browse/MAGNOLIA-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vivian Steller reopened MAGNOLIA-1783:
--------------------------------------
I still have the same issue with magnolia 4.1.1, and it's even worse: when you
send a magnolia page as email, the attachments seem to get cached and re-added
every time you send an email using the same template...
> Mail attachments are joined twice
> ---------------------------------
>
> Key: MAGNOLIA-1783
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-1783
> Project: Magnolia
> Issue Type: Bug
> Components: mail
> Affects Versions: 3.5 RC1, 4.1.1
> Reporter: Capitaine Harold
> Assignee: Teresa Miyar
> Fix For: 4.0
>
> Attachments: HtmlEmail.patch
>
>
> With some configuration, attachments are joined twice.
> Way to reproduce it:
> - Create your own command to send the email.
> - Set in the context all the parameters needed to send an email, that
> includes from([email protected]), to([email protected]), type(freemarker),
> text(rendered body from freemarker file) and finally attachment (instance of
> MailAttachment).
> - The email is send but with two same attchments
> So the current process is:
> - Create an instance of the email depending of the type (for this case
> freemarker)
> - Some others actions doesn't influence the process
> - set the body from resource file and as freemarker email extends html Email
> it sets the attachment
> - Then come back in the email creation process and set again the attchment
> A way to solve this problem is to not add the attachment when the body is set
> and only after.
> Look at the patch
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------