on 10-30-2014 5:59 PM
Hi,
I have my udf with
DynamicConfigurationKey dck_mailAdapter;
dck_mailAdapter = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail", "THeaderCC");
dc.put(dck_mailAdapter, valueCC);
It works, because in the monitor of comunication channel i'm seeing
<SAP:DynamicConfiguration SOAP:mustUnderstand='1'>
<SAP:Record namespace='http://sap.com/xi/XI/System/Mail' name='THeaderCC'>xxxx@yyyyyy.com</SAP:Record>
</SAP:DynamicConfiguration>
My Comunication channel has ASMA activated and
Message Protocol = XIPAYLOAD
Use Mail Package checked
Content Encoding none
Keep Attachments checked
I'm sending all information in the message and it works.
The problem is that CC doesn't work.
Anyone knows the solution? I've checked for a relevant notes and no way.
Regards,
Xavi
Desactivating the mail package works, at least! the problem now is that i'm receiving an xml file with xmail31.xsd instead of mail with attachments.
Any idea? i'm just started with it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that is the behavior without Mail Package. For Mail Package, you set the contents of the email by populating the Content field.
However, without Mail Package, the Main Document payload becomes an attachment in the email. You can set the Main Document as the body by using MTB to change the ContentDispotion to inline. Check out my reply on the thread below.
How send e-mail with XML + PDF and body text
If you want to send additional attachments, then the XI message needs to have additional attachments, and you have to check "Keep Attachments" in the receiver channel.
Rgds
Eng Swee
I checked Variable Transport Binding as saying "To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding." in Configuring the Receiver Mail Adapter - Advanced Adapter Engine - SAP Library and no way
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Code (value1 is a String):
DynamicConfiguration conf =
(DynamicConfiguration) container.getTransformationParameters().get(
StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key =
DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/Mail",
"THeaderSUBJECT");
conf.put(key, value1);
Adapter:
Regards,
Nabendu.
Hi Xavier
Have you tried without using the Mail Package? Mail Package use is deprecated anyway, so maybe ASMA/DC usage is not applicable for use with that.
Check the questions "How to use MailPackage in Receiver?" and "Should I use MailPackage or ASMA?" in OSS note 856599 - Mail Adapter FAQ.
Rgds
Eng Swee
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.