cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter Mail Receiver PI 7.1 - THeaderCC doesn't work

xavisanse
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

xavisanse
Active Participant
0 Kudos

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

engswee
Active Contributor
0 Kudos

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

xavisanse
Active Participant
0 Kudos

i'm playing now with adapter module.

engswee
Active Contributor
0 Kudos

What is the functionality of the module?

Answers (1)

Answers (1)

xavisanse
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hello,

Make sure ur adapter config should be like this:

Thanks

Amit Srivastava

nabendu_sen
Active Contributor
0 Kudos

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.

engswee
Active Contributor
0 Kudos

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

xavisanse
Active Participant
0 Kudos

This configuration throws a exception in adapter

xavisanse
Active Participant
0 Kudos

I've not tried to put the three... maybe.

xavisanse
Active Participant
0 Kudos

I have no idea about it.I'm going to modify it and try again.

Thanks Eng