Dynamic Emails in MAIL

Experts,
My Scenario is File-to-MAIL and i have used XSLT mapping.
Referred Blog; /people/community.user/blog/2006/09/07/email-reporting
I'm good with ouput.. but here email-IDs are embeded in the XSLT mapping.. how do i give these email-ID dynamic?
Note: The File is dropped by MDM system containing customer/product, so i will not be able pass the email-IDs in the source file. so couldnt refer blog; /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
I have browsed throuth the threads but coulnt cath up with correct answer.

The problem is solved: using DynamicConfigurationBean  Thanks for all your answers:
Solution:
- Do not mention To feild in the XSLT mapping
- in Configuration; for MAIL communication channel; go to MODULE tab n give the below parameters;
Processing Sequence:
no'                 Module Name                               Type                  Module key
1      AF_Modules/DynamicConfigurationBean                     Local Enterprise Bean                 5
2      sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean  Local Enterprise Bean                 2
Module Configuration:
Module Key        Parameter Name              parameter Value
5          key.1                      insert http://sap.com/xi/XI/System/Mail THeaderTO
5          value.1                   <Email-ID>
- Go to ADVANCE tab n check Use Adapter-Specific Message Attributes
check Variable Transport Binding  in text box give the value "XHeaderName1"

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

  • 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

  • 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.

  • 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.

  • 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

    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

  • Making dynamic emails clickable

    I tried mailto: in the link area, that creates a blank mail.
    I tried dragging the dynamic email fropm the recordset. That is not
    allowed. How do I get the results page email to be automatically
    open and populate an email?
    Jim Kemble

    If you are using PHP/MySQL put this, modified for your DB, in
    the link property of your cell in the repeating table region:
    mailto:<?php echo $row_rsUsers['email']; ?>
    So your table cell would then contain something like this:
    {rsUsers.email}
    And the link property for that cell would be the first line
    of code above. Instant dynamic e-mail clicky.
    Glenn

  • Email from flex using dynamic email address

    I have an http service call that populates a datagrid. The user drags one or more items to a "favorites list". The user then emails this favorites list to himself. My ISP says they cannot handle dynamic email addresses which is apparently what I need to use. Any ideas or other ways to handle this? I am using PHP to handle the email function.

    Mehabub Sheikh wrote:
    We are using lotus notes for emailing.
    Is it possible to configure APEX for sending email using Lotus Notes 8.5?Yes, inasmuch as I've worked on a project that did so. Their DBA just used the standard APEX mail config: +Configuring Email+
    Notes didn't play as well with the APEX mail API as others: {thread:id=2379927}

  • Dynamic email recipients

    Hi,
    I want to execute an exceptional report. say for example, for customers with sales volue more than 10000 USD, we want to send mails only to those customers that have sales value more than 10000 USD. How do we configure this dynamic email recipients ?

    Carolina,
    Thanks fr your reply. I have done sending exception reports to sap users, but, I had to mention the users in the email recipient list. Here, in this scenario, I dont know the email recipients list, since this list depends on the exception report. Only the users having the exceptional sales values need to get the email not everyone.
    because of this, the recipient list will vary everyday based on the exceptional values.
    solution ?

  • How can I choose multiple pictures, on the iPad, to attach in an email using Mail?

    I can easily choose and attach one picture from Photos to an email in Mail. I cannot seem to figure out how to choose multiple pictures, then attach all of them at once. I even tried using a separate folder to attach but that did not work either. Thanks in advance.

    From the Photos app tap Edit.
    Tap to select up to 5 photos. More and the Mail option is not possible.
    Tap Share.
    Tap Mail.

  • Can't access recent Emails from mail tile in window 8.1

    Can't access recent Emails from mail tile in window 8.1.  Everything working fine until yesterday.  I can get my Emails by going to google Chrome and accessing my gmail but I like just hitting the mail tile in 8.1.  Also  is the start
    of something bad onmy computer?

    Hi,
    Could you please explain a bit for the " mail tile " mentioned here?
    If you mean to access e-mail with the Mail APP, and have issues when using it, we may first take a try with the
    Apps troubleshooter.
    More information regarding mail APP troubleshooting, please check the below TechNet Wiki:
    Troubleshooting the Modern Mail App on Windows 8
    Troubleshoot problems with an app
    If any further help needed, please feel free to update here.
    Best regards
    Michael Shao
    TechNet Community Support

  • Cannot send emails from Mail- using yahoo email - please help!!

    I'm having major problems with my yahoo email in Mail. No matter what settings i seem to use, any emails i send take hours and hours to arrive. I seem to be receiving email, but cannot send- sometimes i get an error message, other times they go into sent box but take hours or days to arrive. i'm using a brand new imac version 10.5.2

    Hello Fred.
    If you’re sure your settings are exactly the same as on the computers where it works, here a couple of things that you may want to look at.
    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list.
    Also, try using a different method to connect to Internet, if possible, or connecting the computer to Internet as directly as possible, i.e. bypassing any routers that might be present, using an ethernet cable instead of wireless, etc., and see whether that makes a difference.
    Mail keeps information about outgoing servers in a separate list, independently of any specific mail account. The account settings just associate one of the available outgoing servers with each account. Orphaned or dangling outgoing server entries (i.e. not associated with any account) sometimes cause weird sending problems.
    Go to Mail > Preferences > Accounts > Account Information > Outgoing Mail Server (SMTP), choose Edit Server List from the popup menu, and delete any servers that shouldn’t be there. The Edit Server List panel shows the account each outgoing server is associated with.

  • Cannot send email in mail app. using POP account with Wi-Fi

    I recently moved to an apartment that only has wireless internet access. Since moving I cannot send email using my POP account, although I can receive email. I was also not able to receive email using my .mac account, but I learned through this forum to change server port to 587 in .mac account and now I can send via .mac account in mail app. But I still cannot sent email with mail app. using my POP account. I changed no settings when I moved, and have never had this problem with cable. Any suggestions?

    It all depends on the policy of whoever is the ISP at your new location and the method used by the outgoing (SMTP) server to determine whether you’re a legitimate user.
    In an attempt to fight spam, many ISPs restrict the ability to send using an outgoing (SMTP) server not owned by them, usually by blocking port 25 for all traffic outside their own network, which means you cannot send with an SMTP server not owned by them if configured to use that port number. And it may happen the other way around as well, i.e. the outgoing server itself may look at the IP address you’re connecting from and refuse the connection if you’re outside its own network.
    Something that often works is changing the outgoing server port to 587 (or whatever alternate port number the outgoing server listens to) instead of 25 and using some form of authentication in Preferences > Accounts > Account Information > Outgoing Mail Server > Server Settings, but two conditions must be satisfied for this change to work: (1) the ISP must not block that port as well AND (2) the outgoing server in question must listen to that port and accept a form of authentication not based on the IP address you’re connecting from.
    Independent mail service providers not tied to a particular ISP, such as .Mac and Gmail, do allow authenticated SMTP access on port 587, which is the reason changing the outgoing server port number solves the problem for them if the ISP doesn’t block that port as well.
    The following article, for example, describes several ways to address this issue in the case of .Mac, but can be useful for other mail accounts as well (not just .Mac), and applies to all versions of Mac OS X (not just Mac OS X 10.4.2 and earlier as the article states):
    .Mac: Server timeout alert message when sending email

  • User two cannot send email from mail app.  (send icon just spins)

    userone can login, use Mail to send and receive.
    user two login and may receive, but not send email in Mail app
    icon next to send paper airplane in folders window just spins.
    able to send email thru facebook, etc.
    also, recently did TDM backup into this iMac of G5 HD.
    how do I access address book data from backup

    resolved part one: played around with mail preferences of user two to match prefs in user one
    still do not know about access to TDM saved addressbook data.

  • Cannot send Email with Mail since updated to 10.7.2, they stay in my Send Box...

    Since I updated, I cannot send Email through Mail, it works with Thunderbird though.

    Just FYI, I've had the same problem for months now. I have been accessing my hotmail via the web, but decided to try the OS X Mail app.  I could get emails into the account with no problem but couldn't send.  I read all the blog and support entries and have tried everything they recommended, like changing my computer name to one word, without success.  Then last night, it just so happened that my broadband provider had to change out my wireless modem.  As soon as he plugged in the new one, some emails that had been in my outbasket for a month went through instantly and all of a sudden my Mail, both incoming and outgoing now work.  So I think people need to look at their router settings for the a solution to the problem. 

Maybe you are looking for

  • Kt3 ultra-aru multiplier prob

    I just bought a new MSI kt3 ultra-aru from newegg and a new athlon xp 1900+(1.6ghz) and i unlocked it but the board wont boot with the new multiplier, so i thought the proc was not unlock so i try my old tbird which has already been unlocked and it d

  • Continuous play not working for songs transferred to another computer

    I purchased a few albums via iTunes. When I changed computers and synced my iPod with the new computer I lost the continuous album play for the songs in these albums. If I play any song from any of these albums and when that song is completed play st

  • Installing more RAM in Macbook Pro

    I know this question has been asked a thousand times before, but I want to know if my specific MacBook Pro model, bought in October 2007 can take 4GB of RAM? I know that some of the older MacBook Pros can only take 3GB, but I'm unclear as to whether

  • Why for P.O. Accounting document will not generate.

    Hi, In T.Code ME21N why Accounting Document will not generate, please give brief information, Thanks Samsunder

  • Certification Magazine: "A Blueprint for Certification Development"

    Certification Magazine interviews Oracle's Global Director of Certification Paul Sorensen: "Blueprint for Certification Development" http://bit.ly/r49Dr