[ http://jira.magnolia.info/browse/MAGNOLIA-1783?page=all ]

Grégory Joseph updated MAGNOLIA-1783:
-------------------------------------

    Summary: Mail attachments are joined twice  (was: Mail attachment are 
joined twice)

> Mail attachments are joined twice
> ---------------------------------
>
>                 Key: MAGNOLIA-1783
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1783
>             Project: Magnolia
>          Issue Type: Bug
>          Components: mail
>    Affects Versions: 3.1
>            Reporter: Capitaine Harold
>         Assigned To: Philipp Bracher
>         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.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to