Skip to Content
0
Apr 09, 2010 at 09:08 AM

Different Attachment extension(.xls,.txt) in sender mail adapter

70 Views

Hi Experts

Is it possible to use different type of attachment extension (e.g .xls,.txt) in the sender mail adapter?

My requirement is , the attachment in the mail adapter will be used as the main payload.So I am using PayloadSwapBean adapter module.

Currently I am using the following module key for .xls attachment and it is working.Configuration for .xls attachment is as follows

swap.keyName-Content-Disposition

swap.keyname-Content-Description

swap.keyName-Content-Type

swap.keyValue-attachment;filename="MailAttachment-1.xls"

swap.keyValue-MailAttachment-1

swap.keyValue-application/vnd.ms-excel.

Now, the attachment may be .xls or .txt file.

Now If I want to use .txt atachment then do I need to define all these parameter again and in that case what will be my content type for .txt file.

Your inputs required

thanks

Ayan