Hi,

regarding to the component wiki
(http://servicemix.apache.org/servicemix-mail.html) you simply set
the property "org.apache.servicemix.mail.subject " with an appropriate
string value on the normalized message
you send to the mail sender. For the file name you should make sure,
that you are using something like

   File yourFile = ...;
   nmsg.addAttachment(yourFile.getName(), new DataHandler(new
FileDataSource(yourFile)));

That should make sure the mail sender interpretes the name of the file
correctly.

Hope this helps, otherwise just ping me again.

Regards
Lars


2009/7/10 subh <[email protected]>:
>
> I am using FUSE ESB 3.4.0.2.
>
> I am trying to send email using the SMX mail component, my flow is like this
>
> Quartz SU --> SMX Bean (read some files) --> SMX Mail (uses the files read
> by bean as attachment)
>
> I am able to send the email, the attachment also is fine but I am not sure
> how to set the subject of the email as well as change the file name.
>
> Right now the subject comes as 'no subject' and the attached file name comes
> as 'unused' and without the file extension.
> --
> View this message in context: 
> http://www.nabble.com/Servicemix-Mail-Question-tp24421110p24421110.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
http://lhein.blogspot.com

Reply via email to