Showing results for 
Search instead for 
Did you mean: 

Mail receiver adapter: THeaderREPLY-TO not working on ASMA

Former Member
0 Kudos

Hello people,

(note: all the @ where changed by " at " because of limitations of SDN)

I'm trying to set some adapter specific message attributes (ASMA) in a mail receiver adapter.

Two properties I'm trying to set: THeaderFROM e THeaderREPLY-TO.

The first one is working great, the second one does not work.

My scenario is Soap to Mail. I send a soap message, in the message mapping a user defined function get the mail address (to and reply-to) and set it with DinamicConfiguration like this (hard coded to be simple):

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("", "THeaderREPLY-TO");
conf.put(key, " at";);
DynamicConfigurationKey from = DynamicConfigurationKey.create("", "THeaderFROM");
conf.put(from, "from at";);

As in the documentation, it should work. But the mail message reaches the mailbox with mime header Return-Path = from at

Reading all the notes related to mail adapter (and adapter module processing) I found the tool TCPGateway to monitor what is going from adapter engine to the mail server. So I changed a little the scenario to test it and now the scenario is Soap->TCPGateway->MailServer. In the TCPGateway I got this:

MAIL FROM:<from at>;
RCPT TO:<roberti at>;
Date: Thu, 5 May 2011 19:55:17 -0000
Subject: mail - teste
To: roberti at
From: from at
MIME-Version: 1.0
content-id: payload-98c5c8b0775111e090110018714e4a28 at
Content-Type: text/xml;charset=utf-8
Content-Disposition: attachment;filename="Untitled.xml";
Content-Transfer-Encoding: binary

<?xml version="1.0"; encoding="UTF-8"?>
<ns0:MTP_SAMPLE_MAIL_MESSAGE xmlns:ns0=""><Title>titulo</Title><Body>body a ser preenchido</Body><Footer>footer tambem</Footer></ns0:MTP_SAMPLE_MAIL_MESSAGE>.

With this information, I found that something is not right in the mail adapter, because it is not writing the relevant reply-to attributes to the mail message.

Some of you has any idea about it?

Thank you in advance.

waldemar roberti

Edited by: Waldemar Roberti on May 5, 2011 5:02 PM

View Entire Topic
Former Member
0 Kudos

Hi Roberti,

I see in your log the problem is with THeaderFROM, not from to. Because in To I see:

RCPT TO:<roberti at>;


Date: Thu, 5 May 2011 19:55:17 -0000

Subject: mail - teste

To: roberti at

So please take a look whether you are having issue with from or reply?



Former Member
0 Kudos


Actually (for testing purposes) I have the email roberti at set in all fields of receiver mail adapter mail attributes (from, to, cc and bcc). I turned all of them on and of and analysed the result. It seems that the information whe put on ASMA overloads the information on these mail attributes. But, in mail attributes, we don't have a field for REPLY-TO, just on ASMA we have this field.

So... the problem is in REPLY-TO. It has not been set in mail adapter, even if I set it with dinamic configuration.

thank you.

Waldemar Roberti