camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From borgel <borge.lo...@gmail.com>
Subject Re: How to add attachement
Date Wed, 16 Jan 2008 08:57:30 GMT

Thank you Aaron!
Sending to ftp now works like a charm :-)

When sending to e-mail the file was  not attached to the mail, but the
content of the file was inserted into the body of the mail. Any thoughts on
this and how to add several attachments to the e-mail?


Aaron Crickenberger wrote:
> 
> On Jan 15, 2008, at 7:50 AM, borgel wrote:
> 
>> Seems like I have to specify binary mode for the ftp transfer. How  
>> can I do
>> that?
> 
> ftp://admin@localhost?password=xxx&binary=true
> 
>> borgel wrote:
>>>
>>> - When uploading files to a ftp server the attachements are stored in
>>> folders with some cryptic names. How do i specify where to store the
>>> attachments?
> 
> FtpProducer will use Camel's auto-generated message id's for the  
> destination file if it can't find a filename in the  
> FileComponent.HEADER_FILE_NAME header.  Try this:
> 
> exchange.getIn().setHeader(FileComponent.HEADER_FILE_NAME, "test.pdf");
> 
> - aaron
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-add-attachement-tp14837954s22882p14874763.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message