[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27344#action_27344
 ] 

Grégory Joseph edited comment on MAGNOLIA-1783 at 3/16/10 6:56 PM:
-------------------------------------------------------------------

See MAGNOLIA-3136

      was (Author: gjoseph):
    please open a new issue, link to this one if necessary; you're describing a 
different (mis)behavior, and it's impacting different code than the one 
impacted here (the module has changed since 4.0)
  
> 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]>
----------------------------------------------------------------

Reply via email to