Dynamic EMail-Receiver in Mailadapter

Hi,
a couple of weeks ago I saw a article here on SDN which dealed with the issue of reading the receiver of a email out of a XI-Message and establish a kind of dynamic receiver behavior for sending out messages over a email adapter.
Unfortunatly I cannot find the article anymore in the SDN.
Has someone a link or something like this where I can find the article ?
Regards,
Frank

Here:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
Cheers
Stefan

Similar Messages

  • How to set "Cc" field in Dynamic Email address in Receiver Mail adapter

    I have done the configuration for setting up the dynamic email address using the XSD provided by SAP in note no 748024. It is working fine.
    Michal's blog “Mail Adapter (XI) - how to implement dynamic mail address.” was a gr8 help in doing this.
    But there is no clue of setting up of "CC" in email.
    There should be "CC" in email is our bussiness requirement.
    Would appreciate your helps.
    with regards,
    Ravi Siddam

    Hi,
    If you do not need mail package for other reasons, I suppose it is enough to provide a value in Dynamic Configuration for fields "THeaderTO" and "THeaderCC" and the select "Use Adapter-Specific Message Attributes" and "Variable Transport Binding" in receiver Mail Adapter.
    see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm">SAP help</a> for more details.
    Regards,
    Daniele

  • How to set "Cc" field in Dynamic Email address in Receiver JDBC adapter

    I have done the configuration for setting up the dynamic email address using the XSD provided by SAP in note no 748024. It is working fine.
    Michal's  blog “Mail Adapter (XI) - how to implement dynamic mail address.” was a gr8 help in doing this.
    But there is no clue of setting up of "CC" in email.
    There should be "CC" in email is our bussiness requirement.
    Would appreciate your helps.
    with regards
    Ravi Siddam

    HI,
    See fragment from help,
    Specifications for mail attributes:
    &#9675;       Under From, specify the e-mail address from which the message is sent.
    &#9675;       Under To, specify the e-mail address that will receive the message. If you enter more than one address, you must separate them with a semicolon.
    If you have specified an IMAP server under URL, the message is saved in the specified folder but is not sent to the receiver specified under To.
    &#9675;       Under Cc, specify the other e-mail addresses to which the e-mail is to be sent.
    These addresses are visible to the receiver.
    &#9675;       Under Bcc, specify the other e-mail addresses to which the e-mail is to be sent.
    These addresses are not visible to the receiver.
    &#9675;       Enter the Subject of the e-mail message.
    &#9675;       Specify whether you want to encode the content of the e-mail message. You have the following options:
    &#9632;       None
    &#9632;       Base64 (default value)
    &#9632;       quoted-printable
    Hope this helps.
    Regards,
    Akshay.
    reward points if find useful.

  • Configuring Receiver mail adapter with dynamic email addresses

    Hi,
    I'm a newbie to XI and I have problems in configuring the Receiver mail adapter with the "Use Mail package" option selected. I am trying pickup a file (using file adapter on Sender side, picks up a simple XML file) and after mapping in XI, send the message as an email message to dynamic email addresses.
    Everything works fine if I did not select the "Use Mail Package". But when I choose that option it errors out. I followed this blog posted on SDN -
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    The following XML message is my source
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/Somenamespace">
       <ns0:Message1>
          <ns1:studentlisttest xmlns:ns1="urn:karthiksender_to_karthikreceiver">
             <Student>
                <studentid>1</studentid>
                <lastname>Studentlastname</lastname>
                <firstname>Studentfirstname</firstname>
             </Student>
             <Mail>
                <From>[email protected]</From>
                <To>[email protected]</To>
                <Subject>Test mail adapter</Subject>
             </Mail>
          </ns1:studentlisttest>
       </ns0:Message1>
    </ns0:Messages>
    What I want to accomplish is, I have a simple message mapping where the Studentdetails are mapped to, lets say Customer details. For convenience lets keep it simple, StudentId --> Customerid, (student)Firstname --> (customer)Firstname, (Student)Lastname --> (customer)Lastname
    I would like to get the Customer details as an XML attachment or in the body of an email with from, to and subject corresponding to that specified in the <Mail> node.
    I followed the instructions posted on the blog and it works fine if I don't map the studentdetails to customerdetails. I did multimapping, with one source message (the xml file I posted above) and two target messages (customerdetails and Mail, which is the external definition posted on the blog). I beleive I'm missing something here. Could somebody please guide me through this?
    Thanks
    Karthik

    hi,
    I still have not found the solution for this problem. Michal, your blog works fine when my source message has got only the mail details. As per your advice, I tried modified the structure of the xsd file as follows
    <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
      xmlns:xi="http://sap.com/xi/XI/Mail/30"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--
    Mail
      -->
      <xs:element name="Mail">
        <xs:annotation>
          <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:string" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
            <xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
            <xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
            <xs:element name="Content" minOccurs="0">
              <xs:annotation>
                <xs:documentation>any type</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="encoding" type="xs:string"/>
        </xs:complexType>
      </xs:element>
      <xs:element name="MailReceipt">
        <xs:annotation>
          <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Server" type="xs:string"/>
            <xs:element name="Format" type="xs:string"/>
            <xs:element name="UseMailPackage" type="xs:boolean"/>
            <xs:element name="Encoding" type="xs:string"/>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CustomerlistExternal">
        <xs:annotation>
          <xs:documentation>Customer List</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Customername" type="xs:string"/>
            <xs:element name="Customerid" type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    My source message will be something like
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:studentlisttest xmlns:ns1="urn:karthiksender_to_karthikreceiver">
             <Student>
                <studentid>1</studentid>
                <lastname>abclname</lastname>
                <firstname>abcfname</firstname>
             </Student>
             <Mail>
                <From>[email protected]</From>
                <To>[email protected]</To>
                <Subject>Testing Mail adapter</Subject>
             </Mail>
          </ns1:studentlisttest>
       </ns0:Message1>
    </ns0:Messages>
    I have mapped the <student></student> information to customerlist, with customerid --> studentid and customername --> firstname or lastname (for symplicity). This was a multimapping with one source and two target messages. My test mapping output is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
         <ns0:Message1>
              <ns2:Mail xmlns:ns2="http://sap.com/xi/XI/Mail/30">
                   <Subject>Testing Mail adapter</Subject>
                   <From>[email protected]</From>
                   <To>[email protected]</To>
              </ns2:Mail>
         </ns0:Message1>
         <ns0:Message2>
              <ns2:CustomerlistExternal xmlns:ns2="http://sap.com/xi/XI/Mail/30">
                   <Customername>abclname</Customername>
                   <Customerid>1</Customerid>
              </ns2:CustomerlistExternal>
         </ns0:Message2>
    </ns0:Messages>
    So how would I get this part of the <CustomerlistExternal></CustomerlistExternal> part of the message as an attachment to the mail address specified in the <ns2:Mail></ns2:Mail> tags.
    I'm definitely not understanding it right and am missing something. Could you give me step by step instructions to acheive this. I apologize for the trouble..this would be of great help to me.
    Thanks
    Karthik

  • Message monitoring Status Waiting for email receiver

    Hi Guru,
    Scenario:  SAP ECC will call Error Handling interface class. The communication channel for the Error Handling interface is Email Adapter.
    Below is CC setting:
    Adapter Type: Mail  (Receiver)
    Transport Protocol: SMTP
    Message Protocol: XIALL
    Adapter Engine: Integration Server
    URL: smtp://11.11.11.111/
    Check - Configure User Authentication
    User : user1
    Password: password
    Mail Attributes:
      From: [email protected]
      To    : [email protected]
      Subject : test
      Content Encoding: base64
    I encountered one problem where my email receiver status in message monitoring is always 'Waiting'. I do not know what went wrong in the setting? Does anyone know how to solve my problem ?
    Thanks in advance.
    Regards

    XI tries 3 times before changing the status of the message to System Error. One can Manually resend the error messages by using the RESEND button in RWB. In scenarios where XI was trying to send the message to an end system that was down for maintenance, you would want XI to resubmit the message automatically without human intervention. What would be nice is to able to tune the retries like IS_Retry which is available for Integration engine.
    We can achieve this by changing the retry count used by the Adapter Engine, by default its set to 3 times, 5 minutes apart. This count can be changed in Visual Admin->server->services-> SAP XI Adapter: XI.
    Here  change the number Retries parameter from 3 to 10 and change the retry retryInterval to around 10minutes. For these configuration changes to be picked up, restart SAP XI Adapter: XI.
    please visit the blog
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically

  • Dynamic email address in MAIL adapter

    Hi ALL,
                 Is there a way of sending dynamic email addresses in mail adapter?
    Regards,
    XIer

    Xier,
    Yes. You can do it. Using Mail adapter option with Use MailPackage option.
    raj.

  • Email Receiver Error

    Hello everybody,
    I have the next error in the configuration of an Email receiver communication channel:
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: java.net.ConnectException: Connection refused: connect
    this error is displayed in the RuntimeWorkbench, now everything seems OK in the configuration, any suggestions of what could be happening?, I mean I'm lost on what to look for in this kind of error, cause I've configured another channel like this before and worked really well, I'm sure on the SMTP server name in the configuration, any suggestions would be really appreciated, thanks in advance.
    Regards,
    Julio Cesar

    Thanks for your anser, actually I have configured that server in my Outlook, so that's how I confirmed is up, I've tried gmail, hotmail and company emails, so I don't now if there's something in the network or with the adapter, now I have no idea what to check if there's something with the network, any sugeestions?, thanks again.
    Regards,
    Julio Cesar

  • Running Safari 6.0.3  When trying to print files using Adobe Reader 11.0.02, print preview screen is all black.  If files are attached to an email, receiver can't open it.  It does work OK in Firefox 19.0.2  Any ideas?

    Running Safari 6.0.3  When trying to print files using Adobe Reader 11.0.02, print preview screen is all black.  If files are attached to an email, receiver can't open it.  It does work OK in Firefox 19.0.2  Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Email Receiver: how to get the names of stored attachments?

    Hi,
    I hate to spam this forum. But I'm in desperate need of the names of attachments, the email receiver QPAC receives.
    If I select a list variable for the email receiver to store all attachments received into, all filenames appear to be lost. Also the MIME-types appear to be lost. Which is not big a problem, since I may use javax.activation in order to identify the MIME-type of any fileinputstream. But sometimes, I am unable to correctly identify the MIME-type. Then I need to fall back on the file's original name.
    So the simple question is: how do I get the 'filename' attribute of org.idp.Document objects instantiated by email receiver QPAC?
    Did anyone ever do that?
    Regards,
    Steve

    Hi Diana,
    1) I used the XPath expression indicated in the screenshot below. It resulted in the process variable
    filename being
    NULL.
    2) I using the following Java-Code in a scripting QPAC:
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.Set;
    ArrayList list = patExecContext.getProcessDataListValue("/process_data/attachments");
    System.out.println("[TEST] num attachments: "+ list.size());
    for (Iterator it = list.iterator(); it.hasNext(); ){
    com.adobe.idp.Document doc = (com.adobe.idp.Document)it.next();
    System.out.println("[TEST] attachment #1, filename: '"+ doc.getFile().getName() +"'");
           System.out.println("[TEST] attachment #1, filename-attribute: '"+ doc.getAttribute("wsfilename") +"'");
            System.out.println("[TEST] attachment #1, file size: '"+ doc.length() +"'");
           System.out.println("[TEST] attachment #1, content-type: "+ doc.getContentType());
      Set attributeList = doc.listAttributes();
    System.out.println("[TEST] num attributes: "+ attributeList.size());
      for (Iterator attributeIter = attributeList.iterator(); attributeIter.hasNext();){
      String attribute = (String)attributeIter.next();
      System.out.println("[TEST] attribute found: "+ attribute);
    Its output in the logfile was the following:
    [STDOUT] [TEST] num attachments: 1
    [STDOUT] [TEST] attachment #1, filename: '646834941068179579'
    [STDOUT] [TEST] attachment #1, filename-attribute: 'null'
    [STDOUT] [TEST] attachment #1, file size: '14624'
    [STDOUT] [TEST] attachment #1, content-type: null
    [STDOUT] [TEST] num attributes: 0
    Is there something I did wrong?
    Or is it even possible that the Email Receiver does not care about attributes of attachments?
    Regards,
    Steve

  • Email received on BT email display blank content

    Hi,
    The email received fron certain domain on BT internet mail display blank content. Has anyone come across the problem? Let me know how to solve.

    I am getting the same thing - going to post about it shortly as I don't know the solution either.

  • After mail was moved to iCloud on jan 1, my mail app emails received have 23 lines of "routing info" between the address and the message. How can I get rid of this info?

    After my mail was moved to iCloud, my mail app emails received have 23 lines of "routing data between the address and the message how can Imget rid of this "data"?

    Found the answer a Mail>preferances>Viewing>Show header detail. Changed it to Default.

  • How to configure dynamic email address for notification

    All,
    I have a problem in assigning dynamic email address for notification activity in a bpel process, I want to assign a user from a user-properties file. How do I achieve this. I tried using the users in System-jazn-data.xml file, but if i add a email attribute to the existing users it doesn't show up. I am sure there should be an easier way of using identity service and adding attributes to the jazn realm user, I might be missing something.
    I cannot have it as part of the payload the only way is to use identity service.
    Thanks,
    Chitra

    Hi James,
    Thanks for the reply. Its solved now. For anybody if interested you can set the dynamic email address either i) having it as part of payload - In this case use the xpath to query the payload varaible ii) use identity service - follow the following steps
    1.Create a user in Application enterprise manager/also you can use a existing account, if u are creating a new one assign the correct role
    2. In either case edit the user-properties.xml(bpel/system/services/config) file for the corresponding user and add an attribute called email
    3. Bounce the server for this changes to take effect
    4. In the notification properties in the to address use ids:getUserProperty and pass the attribute name

  • Confusion in Email Receiver QPAC Configuration.

    Hi,
    I am facing problems with email receiver QPAC. We are using exchange server for Email reception(POP3/Imap).Now the problems are
    1.I have given the user name in the same format as specified in one of the forum discussions i.e.
    (nt-domain\domain-username\email-username).
    It shows the below error When configured for IMAP:
    javax.mail.MessagingException: A2 NO There is no replica for that mailbox on this server.;
    nested exception is:
    com.sun.mail.iap.CommandFailedException: A2 NO There is no replica for that mailbox on this server.
    at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:392)
    at com.sun.mail.imap.IMAPFolder.checkExists(IMAPFolder.java:261)
    at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:782)
    2.when i configured for pop3 the error is
    javax.mail.AuthenticationFailedException: The requested mailbox is not available on this server.
    at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104)
    at javax.mail.Service.connect(Service.java:233)
    at javax.mail.Service.connect(Service.java:134)
    at com.adobe.workflow.qpac.emailreceiver.MailReader.retrieveMessages(MailReader.java:67)
    3. when i use pop3 and default (nt-domain\domain-username) the error is
    javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.
    at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104)
    at javax.mail.Service.connect(Service.java:233)
    at javax.mail.Service.connect(Service.java:134)
    at com.adobe.workflow.qpac.emailreceiver.MailReader.retrieveMessages(MailReader.java:67)
    Please help me on this as we have our accounts existing on the exchange server for pop3.

    Hi Raghavan
    To me it looks like in your first example, you are correctly connecting to the server, but the server is configured to use referrals.
    Please see this Microsoft article:
    http://support.microsoft.com/kb/217388
    For POP3, I believe that you don't need the domain name - just the users login (or full email address), plus password.
    Good luck...
    Howard
    http://www.avoka.com

  • Email receiver qpac-SAX Parsing Error

    Hi,
    Iam working on a project which needs to receive email from an
    external person and the workflow will continue from that point.
    >>I have put a email receiver qpac to accomplish the
    above task. I use the sender's(from) email address as a
    filter for incoming mails and the starting 4 letters of the form
    name to fetch the XDP attachment. The process works just fine
    when tested by sending a mail from Outlook express. But, in
    the case of Lotus Notes, the click of email submit button in
    the form opens up a new mail with the XDP Data file as
    attachment and names it weirdly with some numbers unlike
    outlook express client where in the attachment gets named as
    the form name "_data.xdp".
    Thus, my email receiver does not pick
    this email and the process gets stalled giving some SAX
    parser error. Is there any way to customise form/ lotus notes
    clients to make it work?
    Regards,
    Raghava Kumar VSS

    Hi Raghava
    Just drop the 4 starting letters, and look for the first attachment.
    There should only ever be 1 attachment, so you shouldn't have a problem.
    Howard
    http://www.avoka.com

  • HT4847 How does one prevent all email received from emigrating to the cloud at the time of receipt?

    How does one prevent all email received, from being sent to the cloud at time of receipt?
    leisurestreet

    Welcome to the Apple Community.
    That's how it's supposed to work, you can't stop it. If this isn't what you want you should get yourself a POP based email account.

Maybe you are looking for

  • Can any one help me in giving hr abap objects

    can any one help me in giving hr abap objects for practice, plz send some requriments which really need to worked

  • File Browse Item in Master-Detail Form

    Hi, This is what I need to do. I have a master table called Regulations. As part of the Regulation Creation process, users need to upload supporting files. The number of files is not fixed, so I have a detail table for the uploaded files. I was plann

  • In need of smoothcam plugin

    I desperately need the SmoothCam Plugin for FCE! Tried using the Stabilization on iMovie, but it made my video's quality very blurry and soft-looking. If you know a plug-in for Smoothcam for Final Cut Express, please let me know! Thanks.

  • Swift keyboard; annoying issue with Facebook

    Hello all, I'm not sure if this is something for the forum so apologise in advance if this is the case. My only main gripe with the Swift keyboard is when it's on and you enter someone's name to tag for someone reason when you hit enter it removes th

  • Duplicates on iPad following DRM-free music upgrade.

    After upgrading a few hundred songs to the new higher quality DRM-Free music on iTunes I have discovered a few dozen duplicates on my iPad. There are no duplicates on the desktop only the iPad. Unable to determine which file is the 128 kbps and which