cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic file name of the attachment in sender mail adapter

Former Member
0 Kudos

Hi

I have configured a sender mail adapter which receives some attachments.

Right now the file name of the attachment is hardcoded to "MailAttachment-1" "MailAttachment-2" using the content-description from "AF_Modules/PayloadSwapBean" module.

I want to set it to dynamic ie. instead of "MailAttachment-1"... i want it with real name of the attach.

please suggest a solution w/o the need to develop a custom adapter module.

Thanks!

Regards,

Mariano.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Prateek,

Now, i can see that the name of the original file is into the content type named as text/xml; name"name of the file.xml" when i send the email from outlook.

If i send it from hotmail, this is not happend.

Do you know why happend this?

If i always would have the original name inside the content type, my problem will be solved.

Edited by: Mariano Vidal on Feb 13, 2009 2:26 PM

Former Member
0 Kudos

Can you tell me how was this resolved.

i have same issue

My scenario is Email to JDBC . in my sender email adapter, i get two attachments(xls and pdf).how can i read only xls from two attachements?

Former Member
0 Kudos

Thanks Prateek,

Do you have any example of this module that i need?

Regards,

Mariano

prateek
Active Contributor
0 Kudos

This blog will give you an idea

/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

Regards,

Prateek

prateek
Active Contributor
0 Kudos

Without adapter module, there is no direct way of configuring the dynamic attachment name.

Regards,

Prateek