Skip to Content
avatar image
Former Member

Dynamic Configuration of Mail receiver Communication Channel

Hi,

like in /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping for http receiver CC, i am trying to do header customisation, with XHeaderName1 for mail header fields like content-type, content-disposition, but it doesn't works ...

in my mapping i've added :

> (...)

> DynamicConfigurationKey cDisposition = DynamicConfigurationKey.create("http:/""/sap.com/xi/XI/System/Mail", "XHeaderName1");+

> dynaConf.put(cDisposition, "attachment;filename=myFile.txt");

in Communication Channel ASMA i've added variable header : XHeaderName1 --> Content-Disposition

in monitoring i see that XHeaderName1 is filled with attachment;filename=myFile.txt

but in the mail send like this, this configuration has no effect

Someone can help me ?

Edited by: MedAmine on Aug 19, 2009 3:20 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 03, 2012 at 12:11 PM

    Only one standard mail header field can be influenced: this is indeed "Content-Disposition".

    You have done halve way, the only thing you have missed is to set the additional parameter 'OMail.AddContentDisposition' to false within 'Advanced Mode'.

    Have a look at this WiKi:

    http://wiki.sdn.sap.com/wiki/display/ESOAInfrastructure/Dynamic+Email+Attachment+name+for+Received+Mails+with+ASMA+and+without+using+mail+package

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I have the same problem, is it possible if you can send me the screenshot of the mapping where the UDF was used.  Thanks in advance.

  • avatar image
    Former Member
    Aug 19, 2009 at 04:29 PM

    Hi,

    Maybe this can help you

    dynamic-subjet-in-mail-adapter

    Regards,

    lpbuff

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 19, 2009 at 09:44 PM

    It is not possible to influence standard mail header fields by ASMA. You can set only additional, user defined header fields.

    If possible, use Mailpackage.

    Add comment
    10|10000 characters needed characters exceeded