Skip to Content
Former Member
May 05, 2011 at 08:02 PM

Mail receiver adapter: THeaderREPLY-TO not working on ASMA


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