You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pbarot <pb...@asite.com> on 2006/09/27 13:57:30 UTC
MimeMailSender gives problem with attachments...
hi,
when i use MimeMailSender as a destination service for my component, and i
attach any doc then it gives me the attachment as a mail content (
garbage...:( ) not as an attachment...
if its pdf and i set
<code> NormalizedMessage.addAttachment(name,file(pdf)); </code>
then it gives all the content of PDF in mail body content..not as an
attachment...
please help..urgent...
also tell me if i can attach from string or Source object directly...i need
to attach doc in email... please reply fast...
thanks in advance.
--
View this message in context: http://www.nabble.com/MimeMailSender-gives-problem-with-attachments...-tf2344261.html#a6525233
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: MimeMailSender gives problem with attachments...
Posted by Guillaume Nodet <gn...@gmail.com>.
I just made a test and attachments works.
What's your servicemix configuration file ?
On 9/27/06, Guillaume Nodet <gn...@gmail.com> wrote:
> You can implement your own mail marshaler if needed,
> though I don' t see why it would not work.
> Try putting some traces in the MimeMailMarshaler to
> see if attachments are set correctly on the MimeMessage.
>
>
> On 9/27/06, pbarot <pb...@asite.com> wrote:
> >
> > hi,
> > when i use MimeMailSender as a destination service for my component, and i
> > attach any doc then it gives me the attachment as a mail content (
> > garbage...:( ) not as an attachment...
> > if its pdf and i set
> > <code> NormalizedMessage.addAttachment(name,file(pdf)); </code>
> > then it gives all the content of PDF in mail body content..not as an
> > attachment...
> > please help..urgent...
> >
> > also tell me if i can attach from string or Source object directly...i need
> > to attach doc in email... please reply fast...
> >
> > thanks in advance.
> > --
> > View this message in context: http://www.nabble.com/MimeMailSender-gives-problem-with-attachments...-tf2344261.html#a6525233
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
>
--
Cheers,
Guillaume Nodet
Re: MimeMailSender gives problem with attachments...
Posted by Guillaume Nodet <gn...@gmail.com>.
You can implement your own mail marshaler if needed,
though I don' t see why it would not work.
Try putting some traces in the MimeMailMarshaler to
see if attachments are set correctly on the MimeMessage.
On 9/27/06, pbarot <pb...@asite.com> wrote:
>
> hi,
> when i use MimeMailSender as a destination service for my component, and i
> attach any doc then it gives me the attachment as a mail content (
> garbage...:( ) not as an attachment...
> if its pdf and i set
> <code> NormalizedMessage.addAttachment(name,file(pdf)); </code>
> then it gives all the content of PDF in mail body content..not as an
> attachment...
> please help..urgent...
>
> also tell me if i can attach from string or Source object directly...i need
> to attach doc in email... please reply fast...
>
> thanks in advance.
> --
> View this message in context: http://www.nabble.com/MimeMailSender-gives-problem-with-attachments...-tf2344261.html#a6525233
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet