Skip to Content
author's profile photo Former Member
Former Member

XI 3.0 Mail Adapter -> Set recipient e-mail address dynamically

Hi,

Is it possible to the set the recipient of the e-mail based on the content of the message ?

For example :

Message Type XXXXXX received with content A

-> e-mail sent to joe.bloggs@yahoo.com

Message Type XXXXXX received with content B

-> e-mail sent to john.smith@yahoo.com

As far as I as can see, the receiver e-mail is set on the receiver channel and cannot be set dynamically. Is this correct ?

Kind regards

Colin. 😊

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 23, 2004 at 03:03 PM

    Hi Colin,

    you can create several communication channels for your needs and then set up a BPM scenario to branch and send to different recipients.

    Rgds

    /Michael

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sven,

      It is possible to set up a receiver mail adapter channel that sends xml-attachments to different recipients.

      For this you have to use the "Use Mail Package"-flag in the Receiver Mail adapter. The structure of the xml you need to send is very strict. The Message type you send has to have a root element called "Mail" (ie MessageType has to be named Mail) and the message type has to have the XML namespace of "http://sap.com/xi/XI/Mail/30". The structure of the XML is real strict. I have seen no documentation except OSS note 748024 that describes the XML schemas for Mail and MailReceipt.

      What SAP have put in place here gives a limit of one Mail message type per interface namespace, which I think is a pitty.

      Good luck!

      Runar Myhre

      Spring Consulting

  • Posted on Dec 07, 2004 at 09:34 AM

    I find in help.sap.com

    Example of XI Payload with Mail Package

    http://sap.com/xi/Mail/ximail30’>

    Name1 < Name1@company.com>

    Name2 < Name2@company.com>

    <Subject>Important</Subject>

    by mail.company.com ...

    <X-Mailer>Outlook Express </X-Mailer>

    <Content>

    This is the content.

    </Content>

    </ml:Mail>

    So, how namespace should look like?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.