You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Reji Mathews <co...@gmail.com> on 2015/01/01 18:34:03 UTC

Re: Mail-Component: HTML body is sent twice.

Keep only those values in headers which u wanna allow them to pass to next
component like smtp with mapMailMessage option or pass the values even to
the next system via producer endpoints.

Else its always better practice to store them in exchange properties.

Cheers
Reji
On 01/01/2015 10:27 pm, "Jason Holmberg" <jh...@part.net> wrote:

> It has been my experience that the Mail component will try to add all
> headers
> in the headers map as email headers.  I generally remove any unnecessary
> headers from the org.apache.camel.Message before invoking the Mail
> component.
>
> -Jason
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Mail-Component-HTML-body-is-sent-twice-tp5761124p5761206.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Mail-Component: HTML body is sent twice.

Posted by "sabri.bousselmi" <in...@yahoo.fr>.
Thanks for reply.
That's exactly what i did to solve the problem for the time being. but I am
not convinced about Mail Producer behavior, only the exchange body should be
mapped as Email content to MimeMessage.
Nothing mentioned in the documentation says that additional Headers affect
the email content --> for my point of view there is 2 cases:
1- wrong mapping at Mail producer Level when we build the MimeMessage.
2- wrong mapping at Transport level(Java-Mail API).


Regards
Sabri




--
View this message in context: http://camel.465427.n5.nabble.com/Mail-Component-HTML-body-is-sent-twice-tp5761124p5761236.html
Sent from the Camel - Users mailing list archive at Nabble.com.