on 12-02-2009 11:02 AM
Hi all,
May i know what is the way to dynamically set the file name of attachment in receiver mail adapter.
Can we do using DynamicConfiguraion???
If yes how?
Thanks In Advance,
H.L.Babu
Yes we can set the attachment name of the mail dyanamically, using a adapter module.
Thanks for all your replies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But i am not using any mail package.
and also in adapter module i have written code like..
byte by[] = generateExcel(is);
xp.setName(filename);
System.err.println("The name of the file."+filename);
xp.setContentType("application/vnd.ms-excel");
xp.setContent(by);
System.err.println("After successful setting of XML Payload");
msg.setDocument(xp);
System.err.println("Message Set is successful");
But it is not getting the excact file name..
Any coments..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suraj,
That will not work..
Is there any other way...
I am not using any mail package i am supposed to set the attachment dynamically.
I went through the blog
but the attachment name is not coming properly..
Hi Babu,
>>May i know what is the way to dynamically set the file name of attachment in receiver mail adapter.
1. Use mail package XSD as target
2. Set receiver mail adapter to use mail package and
3. Create content disposition and content type dynamically using dynamic configuration in mapping
Content disposition of Mail package should have value
attachment;filename="<yourfilename>"
Rgards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
one option is
Dynamic name in the mail attachment - pseudo "variable substitution"
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
similarly dynamic configuration can also be utilized.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.