Dynamic mail subject in mail adapter

Hi.
Two different interfaces are using the same mail adapter. Is it possible to change the subject of the email (that gets generated by the receiver mail adapter) depending on whcih interface gets triggered?
Thanks.
Anuradha.

Anuradha
You can change the subject through mapping. For different interface you can send different subjects.
Please refer
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
Regards
Raj

Similar Messages

  • Dynamically pass subject via mail adapter without using mail package

    Hi,
    We have requirement to pass the Dynamic variable as Mail subject
    we can't use Mail Package as we need to capture the data from Dynamic SOAP header Data from incomming channel
    Dynamic SOAP Header variable (XHeaderName1) comming from Sender SOAP channel.
    Receiver side we need to capture that XHeaderName1 in Mail Adapter channel using ASMA and Variable transport binding so that value of XHeaderName1 should overwrite Subject under General/ Mail Atribute section.
    Could you please let me know, how to handle this requirement using module configuration?
    Also suggest the correct configuration to use ASMA and Variable transport binding.
    Regards
    Venky

    Hi Venky,
    Please have a look at the links below. They should help you.
    Configuring the Sender SOAP Adapter- https://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Configuring the Receiver Mail Adapter-https://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    Adapter-Specific Message Attributes in the Message Header  -https://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/content.htm
    Regards,
    Jannus Botha

  • ERMS : Auto Acknowledgement Mail , Subject and Mail Body is empty

    Hi Guys ,
    We have set up an auto acknowledgement mail scenario . Acknowledgement mail is triggered , but the subject line and mail content are empty.
    We are using email forms here .
    If anyone has faced the same challenge , please let me know .
    Thanks
    Vinayak

    Hello,
    Hard to say. Mail forms are language dependant. Did you check that your mail form is maintained in the language used to generate the email (it is based on the user generating the email I believe) ?
    Best regards,
    Sylvain

  • Dynamic mail subject in File2Mail Scenario

    We are doing File2Mail scenario. We r sending 5 files in 5 mails with 5 diff subjects by MAIL adapter.
    Can anyone guide me how to send 5 files as attachment in one single mail with different mail subjects :
    File names are - Employee_Leave,Base,Super,Loss,Profit.

    Hey,
         you can use dynamic addressing wherein you can provide the mail related information in your mapping.
    for example the to, from, subject and content.
    so you can map these fields form the input structure or you can have a constant to map it.
    refer to this blog it will really help.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    the only differerence in your case is that you need file as attachment so mark the keep attachment field.
    it will ask you for a mail structure.
    use this structure as your target structure.
    <?xml version="1.0" encoding="utf-8" ?>
    - <!--
    SAP takes no position regarding the validity or scope of any intellectual property or
    other rights that might be claimed to pertain to the implementation or use of the
    technology described in this document or the extent to which any license under such
    rights might or might not be available; neither does it represent that it has made any
    effort to identify any such rights.
    Copyright © SAP 2003-2004. All Rights Reserved.
    This document and translations of it may be copied and furnished to others, and derivative
    works that comment on or otherwise explain it or assist in its implementation may be
    prepared, copied, published and distributed, in whole or in part, without restriction of
    any kind, provided that the above copyright notice and this paragraph are included on all
    such copies and derivative works. However, this document itself does not be modified in
    any way, such as by removing the copyright notice or references to SAP.
    This document and the information contained herein is provided on an u201CAS ISu201D
    basis and SAP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
    IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
      -->
    - <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:schema>
    reward points if useful.
    regards,
            Milan.

  • Dynamic file name as mail attachment in receiver Mail Adapter?

    Hi,
    Can any one tell the possibility of attaching file as a mail attachment without using mail Package with dynamic filename.
    Business requirement is to send error response as mail attachment with dynamic name.
    Ex: Error_Response_20110802_13.24 where 20110802 is Date and next part represents time stamp.
    File attachment name should change dynamically in Mail receiver Adapter. Thanks
    Regards,
    Sreeramulu Konjeti.

    there is no standard way.
    you will have to write a module to get this in place.
    other ways are;
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Dynamic name in the mail attachment - pseudo "variable substitution" :
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

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

  • Mail Receiver adapter - dynamic file name without mail package

    I know that we can get the dynamic attachment name using mail package... As per the FAQ Mail adapter, the Mail package use is deprecated and hence we do not want to go that route.
    I have seen the following wiki entry for setting the file attachment name...
    http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    Is this the only approach to dynamic attachment name using Mail adapter (and without Mail package). Or a different approach without Adapter module is possible?

    There is a different approach without using mail package or adapter module.
    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

  • Messageid in subject of mail in mail-adapter

    hi,
    we want to send ORDER-documents to our supplier via eMail.
    As subject in these mails we have to set the messageid of the document.
    Is it possible to set the subject of a mail in a j2ee-module? I didn't find any information about that in the XI- or module-documentations.
    Regards,
    Thorsten

    Hi,
    you don't need modules if you have at least sp14
    (with it you can easily set subject inside a mapping)
    you can also use mail package in which you can also
    set the mail subject <--but this method is not as flexible as the first one
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Mail Attachment with attachment name = mail subject name

    Hi,
    I am using the mail adapter and today I am using hard codes attachment names using the MessageTransformBean. I have read the blog /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution about dynamic filenames but how do I get the eMail subject as a viriable to create the attachment?
    Thanks
    Juergen

    Juergen my weblog was the simplest suggestion to your issue - you can put the mail subject anywhere in
    message get it (and remove) in the adapter module
    you can also try to get the
    Adapter-Specific Message Attributes from the adapter module 
    http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/content.htm
    but I'm not sure it the second solution works with adapter modules - but you can do an easy check
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Dynamic File naming in Mail attachment

    Hi experts,
      I am doing a Mail to File scenario, in which at the sender side I have a mail with File attachments.We are using IMAP protocol and picking up from a URL.At the receiver end we have to provide a file which is the attachment from the incoming mail.
    With the help of the module I have separated the body and the attachment and the file is created with the static name I provided in the File adapter
      My requirement is to dynamically name the file based on the customer name.I am not configured the design part, as no mapping of the interfaces are required.
    For some reason,I am not able to open the mail bodyin sxmb_moni,but can see the attached file.
    Thanks,
    Tushar

    there is no standard way.
    you will have to write a module to get this in place.
    other ways are;
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Dynamic name in the mail attachment - pseudo "variable substitution" :
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

  • File to mail scanario   Dynamic name for e-mail attachments

    Hi ,
    I am using standard mail package for Dynamic name in the mail attachment.
    Content_Disposition : = attachment
    Content_Type =  file name  I am taking from DynamicConfiguration
    Now I received mail , but file name have (abc.txt.dat) extension .dat  but i want it same as send by sender file adapter(abc.txt)
    Please suggest how to handle this.
    Thanks
    Mohit

    Hi,
    my pretty solution
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3202
    Regards,
    Michal Krawczyk

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • Alert management with custom mail subject

    Hello,
    I defined a business process, with a control step that throws an alert with a specific message "Error in &MessageTypeFound& " ( &MessageTypeFound& being a container element filled in in a previous step ).
    When I look at the e-mail that the alert manager sent, I can see the alert, with the variable properly filled in, so the result in the mail-body is: "Error in WMMBXY".
    Now, as a mail subject, I want the same message. In the Alert Category Definitions, I need to fill in the title and this will be used as mail subject.
    To be able to use variables in this title, I need to define container elements in the alert category definition. How can I pass the Business Process variable ( &MessageTypeFound& ) to this container for the alert definition ? (So I can use this container element for my dynamic variable in the subject of the alert mail)
    Any ideas are welcome !
    Thanks

    Hi Frederik,
    Unfortunately the functionality you want is simply not available ... or well it is but its not implemented very good by SAP.
    The workflow step that generates an alert does has a container element 'SHORTTEXT' which can hold placeholders and which is translated into the title of the alert message/mail.
    However, the field is defaulted with the text 'Process &_WORKITEM.WORKITEMID&' when being executed via BPM ...
    I tried to overwrite it by setting my own 'SHORTTEXT'container element within the BPM but that does not work ...
    Regards,
    Steven
    ( Tried everything on SP14 ... maybe something changed in SP15 ... )

  • Change outgoing mail subject

    Hi Guru's,
    I need to change the subject of the outgoing standad mail template dynamically by the comlaint id which i get it through the refernce field of the mail.
    or is there any way through which the refernce id can be copied in the mail subject.
    Thanks,
    regards,
    akshay ruia.

    settings - mail - account - outgoing mail server

  • Emails showing different subject to mail headers

    My mail provider is gmail via IMAP, and I connect to this via the mail application.
    Until recently all was good with the world.
    Now I randomly get a mismatch between the mail sender, the subject that is listed for the mail and the actual email that is shown.
    To give an example. if I received two emails from the same person within a few hours, the first email would have the correct sender but either the wrong subject or email body or both and the second email would have the reverse. So the only part that mail is getting right is the sender, the rest is mismatched.
    When I look in more details at the email headers via > Mail>View>Message>All Headers the correct Subject is listed in the headers but a combination of the wrong subject appearing in the preview and the wrong actual email are the manifestation of the problem.
    Some additional info.
    In Mail, I have multiple folders, and total mail volume is plus 6GB.
    What have I done up till now to fix the problem
    1. Mailbox rebuild; done multiple times, and whilst this does fix the problem for a short time, within 24 hours it reoccurs with different messages (random). Problem with this fix is its temporary and rebuilding your  mailbox multiple times is a pain.
    2. Removal of account from Mail and rebuild. again this is a temporary fix and whislt this does fix the problem for a short time, within 24 hours it reoccurs with different messages (again random).
    3. Total removal of the mail account from mail and deletion of all the associated mail files in the ~/Library/<user>/Maildata/V2.... folder followed by a full import of the mail from scratch. This one is a bit more interesting. The occurrence of the problem seems to be on the newest mail. With this method all mail rules/filters had also been deleted before the resync of mail, hence ruling out the filters as a possible source of the issue. But again randomly mail would be incorrectly listed with the wrong subject.
    Why is this a pain, I'll add this just to get everything down on this listing.
    So an email client that get one third of the tasks it meant to handle isn't really an email client at all, its a mail transformer and not in a good way, more of a random deceptacon kind of way and its highly infuriating. I have seen various listings about similar problems to this but mostly they seem to be solved by mailbox rebuilding of the mail indexes etc etc. These aren't permanent fixes for this problem and I would be very interested to hear if anyone has similar and has actually fixed this, or are people simply waiting for a fix in the next upgrade of mail in yosemite? or is these something more going on between mail and the interaction with gmail?
    Comments welcome.

    Kfir,
    I guess you've implemented a mapping to create the target email ? If so, you could a feature to build the subject depending on a source message context (field value ? sender ? etc) ...
    Otherwise, you may play with dir objects (intf determination for instance) to use different mappings (so diff. subjects) to create target mail (depending on sender/receiver etc) ...
    Rgds
    Chris

Maybe you are looking for

  • How to interface SC-HT800v Panasonic Home Theater with New Samsung LED/LCD 6500 series TV

    I don't see how the 14 pin cable coming out of the subwoofer will connect to the new TV or our new Blue Ray player Samsung BD-C5500.  We currently have no receiver since that was in the Panasonic VCR/DVD that we have abandoned.  Can you confirm this

  • Jsp page - java class binding

    Is there any configuration file that binds the jsp page and the java class? I need to replace some jsp pages and their classes in different packages, but the pages cannot find their classes. Does anybody know where/how I can set the appropriate bindi

  • How do I set a multiple Services Dashboard?

    Hello! I'm on Oracle EM11g setting up some systems and services. I was reading this doc page and saw that awesome dashboard to see multiple services at the same time. However, I don't understand how can I set up a dashboard like that, plus the photo

  • How do I fix this problem importing video

    When trying to import analog video from my Hi8 vcr through a Dazzle Hollywood bridge I cannot see the video in iMovie 6. iMovie says the camera is connected but there is only a blue screen. Clicking the import button does nothing. The bridge indicato

  • Need sysdate in UTC format

    Hi, In my database date was set in PST, but if i execute the below query i need the o/p in UTC timezone. So could u pls help me out. select sysdate from dual Thanks