Synchronous scenario using receiver mail adapter

Hi All,
I am trying to do a Http to Mail synchronous scenario. My requirement is, if the mail has been delivered to the reciver mail server, it should send an acknowledgement/response back to XI. Simlarly when it fails to deliver the message it should send an acknowledgement/response back to XI.
Is it possible to do? If yes, please tell me how can i do this?
Thanks & Regards,
Senthil.

>
prakasu wrote:
> Hi,
>   In the mail receiver adapter mark the check box send delivery status notification.It will give the acknowledgement to the from address mail is deliverd or fails.There is no need of synchronous scenario.
>
> Regards,
> Prakasu.M
using this method a delivery ack mail is send to the TO address as rightly pointed out.
Now senthil, if you want to you can have a mail sender adapter polling for mails and you can maybe correlate the To address using a BPM and then recognize this to be a delivery ack for the mail you send. Its not concrete as maybe a delivery ack might say it was not successfully delivered too so then you might have to enhance your logic to check the content to see what the mail is all about. Pheww ....
Doesnt seem right.. so I gather the best is to redesign the interface if the flexibility is in your hands.
Other option is to have a acknowledgment request in your Send step of the BPM

Similar Messages

  • Cc header in the triggered mail  using  receiver mail adapter

    Hi,
    How can we  have cc option in the triggered mail using receiver mail adapter.
    message protocol is  XI payload with mail package.
    thanks,
    Ramya Shenoy

    Hi !
    Check this link:
    http://help.sap.com/saphelp_nw04s/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
    under the title:
    "Mail Attributes for Message Protocol XIPAYLOAD"
    Regards,
    Matias
    ps:please award points if helpful.

  • How to send mails to "CC" and "BCC" using receiver mail adapter dynamically

    Hi,
    Due to business requirement PI need to send mails dynamically to u201CCCu201D and u201CBCCu201D using receiver mail adapter.
    We have an option to send mails to u201CTou201D dynamically, but are there any option to send mails u201CCCu201D and u201CBCCu201D dynamically.
    Please some help to resolve the issue. Thanks
    Regards,
    Sreeramulu Konjeti.

    Hi Sreeramulu,
    As mentioned by Lucas, you can use the UDF. Inn addition to that, you need to define the Variable Headers under Variable transport binding after enabling the Adapter Specific Message Attributes.
    For the Enabling ASMA, follow the below steps and check for the variable attributes.
    Select the Advanced  tab page.
       To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
    The following attributes in the message header are then available for processing:
    ○       User: (technical name: TServerLocation)
    ○       Authentication key: (technical name: TAuthKey)
    The following mail header fields are available for processing:
    ○       From: (technical name: THeaderFROM)
    ○       To: (technical name: THeaderTO)
    ○       Cc: (technical name: THeaderCC)
    ○       Bcc: (technical name: THeaderBCC)
    ○       Subject: (technical name: THeaderSUBJECT)
    ○       Reference to the mail that is to be replied to: (technical name: THeaderIN-REPLY-TO)
    ○       Reply to: (technical name: THeaderREPLY-TO)
    ○       Mail client program: (technical name: THeaderX-MAILER)
    ○       Send confirmation of receipt: (technical name: THeaderDISPOSITION-NOTIFICATION-TO)
    ○       Priority: (technical name: THeaderPRIORITY)
    ○       Importance of message: (technical name: THeaderIMPORTANCE)
       To transfer further header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, and XHeaderName3.
    The parameters are included in the mail header under the names specified here.
    The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
    Thanks,

  • Email content line feeds using receiver mail adapter - HELP!

    Hi all,
    I have read the threads on how to download the XSD from SAP for creating a mail message type with dynamic To and From addresses and this is working fine. However, I am unable to create multiple lines in my mail message. I have the following parameters in my config:
    XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
    XML2Plain - Tansform.ContentType - text/plain;charset=utf-8
    XML2Plain - xml.conversionType - SimpleXML2Plain
    XML2Plain - xml.addHeaderLine - 0
    XML2Plain - xml.fieldFixedLengths - 12,150
    XML2Plain - xml.fixedLengthTooShortHandling - Cut
    XML2Plain - xml.fieldSeparator - '0x0D''0x0A'
    I have not changed the message type in the Design so the mapped Content field currently just contains one long line of 162 characters (as does the resulting email). I want 12 characters on the first line and 150 characters on the second line. Do I need to concatenate something between by 12-character and 150-character strings to achieve this? Do I need a line.Separator parameter in my module configuration?
    Many thanks,
    Stuart Richards

    Hi Sreeramulu,
    As mentioned by Lucas, you can use the UDF. Inn addition to that, you need to define the Variable Headers under Variable transport binding after enabling the Adapter Specific Message Attributes.
    For the Enabling ASMA, follow the below steps and check for the variable attributes.
    Select the Advanced  tab page.
       To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
    The following attributes in the message header are then available for processing:
    ○       User: (technical name: TServerLocation)
    ○       Authentication key: (technical name: TAuthKey)
    The following mail header fields are available for processing:
    ○       From: (technical name: THeaderFROM)
    ○       To: (technical name: THeaderTO)
    ○       Cc: (technical name: THeaderCC)
    ○       Bcc: (technical name: THeaderBCC)
    ○       Subject: (technical name: THeaderSUBJECT)
    ○       Reference to the mail that is to be replied to: (technical name: THeaderIN-REPLY-TO)
    ○       Reply to: (technical name: THeaderREPLY-TO)
    ○       Mail client program: (technical name: THeaderX-MAILER)
    ○       Send confirmation of receipt: (technical name: THeaderDISPOSITION-NOTIFICATION-TO)
    ○       Priority: (technical name: THeaderPRIORITY)
    ○       Importance of message: (technical name: THeaderIMPORTANCE)
       To transfer further header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, and XHeaderName3.
    The parameters are included in the mail header under the names specified here.
    The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
    Thanks,

  • In Receiver Mail Adapter ,how to ignore SOAP Header attachment

    HI Folks,
    Am using Receiver Mail Adapter and am getting 2 attachments.
    1. one is Soap header which contains Control records
    2. payload
    I want only Payload as attachment and need to ignore SOAP Header(AT00001.xml).
    The configuration is as below:-Trasport protocol : SMTP
                                                Message Protocol: XIALL
    Please provide Inputs.
    Thanks & Regards
    Ashok Reddy

    Hi Gagandeep,
    Scenario: File------>mail( Bypass scenario)
    i had posted file in FTP and am getting attachment properly but aditionally am getting ATT00001.xml as SoapHeader.this i need to ignore.
    PFB Module Parametrs i used:
    localejbs/AF_Modules/MessageTransformBean   LocalEnterpriseBean    transform
    Modulekey                      Parameterattribute                        value
    transform                      Transform.ContentDisposition            attachment;filename=”Pocr_860.txt”
    transform                     Tansform.ContentType                       text/plain
    Regards
    Ashok

  • How to Configure Receiver Mail Adapter?

    I need to designed a BPM if Message is failed to update database then send an e-mail to alias group in Microsoft outlook by using Receiver Mail adapter.
    Can someone help me to design above BPM and how I need to configure receiver mail adapter.
    Thanks in advance!
    Mrudula

    I am getting  <Trace level="3" type="T">Unknown channel type: Mail</Trace> when it tries to call "MAIL" adapter.
    Does anyone has any clue where should I look?
    Thanks!
    Mrudula
    <Trace level="3" type="T">Calling pipeline service: PLSRV_CALL_ADAPTER</Trace>
      <Trace level="3" type="T">Reading Pipeline-Service specification...</Trace>
      <Trace level="3" type="T" />
      <Trace level="3" type="T">Pipeline service specification (table SXMSPLSRV)</Trace>
      <Trace level="3" type="T">PLSRVID = PLSRV_CALL_ADAPTER</Trace>
      <Trace level="3" type="T">PLSRVTYPE = =SWITCH=</Trace>
      <Trace level="3" type="T">ADRESSMOD = SD</Trace>
      <Trace level="3" type="T">P_CLASS =</Trace>
      <Trace level="3" type="T">P_IFNAME =</Trace>
      <Trace level="3" type="T">P_METHOD =</Trace>
      <Trace level="3" type="T">FL_LOG =</Trace>
      <Trace level="3" type="T">FL_DUMMY = 0</Trace>
      <Trace level="3" type="T" />
      <Trace level="3" type="T">Unknown channel type: Mail</Trace>
      <Trace level="3" type="T" />
      <Trace level="3" type="T">Pipeline service specification (table SXMSPLSRV)</Trace>
      <Trace level="3" type="T">PLSRVID = PLSRV_CALL_ADAPTER</Trace>
      <Trace level="3" type="T">PLSRVTYPE = AENGINE</Trace>
      <Trace level="3" type="T">ADRESSMOD = SD</Trace>
      <Trace level="3" type="T">P_CLASS = CL_XMS_PLSRV_IE_ADAPTER</Trace>
      <Trace level="3" type="T">P_IFNAME = IF_XMS_PLSRV</Trace>
      <Trace level="3" type="T">P_METHOD = ENTER_PLSRV</Trace>
      <Trace level="3" type="T">FL_LOG =</Trace>
      <Trace level="3" type="T">FL_DUMMY = 0</Trace>
      <Trace level="3" type="T" />
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />

  • Receiver Mail Adapter

    Hi All,
    I am using Receiver Mail Adapter to send mails.
    When i choose Message Protocol the mail goes. But when i change it to XIPAYLOAD the mail doesnt go.
    I cannot find any errors in SXI_MONITOR or in adapter monitoring.
    My file is in this format..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Mail xmlns:ns0="http://sap.com/xi/XI/Mail/30">
      <Subject>Mail From XI new</Subject>
      <From>kmadmin</From>
      <To>[email protected]</To>
      <Content_Type>text/plain</Content_Type>
      <Date>2006/08/24</Date>
      <Content>Test mail from XI</Content>
      </ns0:Mail>
    Tried both ways..
    XIPAYLOAD without “Mail Package”
    XIPAYLOAD with “Mail Package”
    Can anyone temme where im going wrong..or any settings which i need to do.

    Bhavesh
    <i>Am not sure which SP onwards this is applicable. But , did you select and try with MAIL PACAKGE also selcted.</i>
    Tried using both wayz..
    You dont need to create ,http://sap.com/xi/XI/Mail/30  namespace in IR.
    The mail is going now..
    just disabled
    Content_type, Date in Mapping.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Mail xmlns:ns0="http://sap.com/xi/XI/Mail/30">
      <Subject>Mail ALert XI</Subject>
      <From>kmadmin</From>
      <To>[email protected]</To>
      <Date>2006/08/24</Date>
      <Content>SQL Server Is Not Working</Content>
      </ns0:Mail>
    Thanks
    SUmit

  • Receiver Mail Adapter for PI 7.1 ehp1

    Hi Experts,
    Is there a way by using Mail Adapter (Receiver) to read the contents of the payload (which is considered also as the attachment) to be included in the body of the email?
    Appreciate your help in advance. Thanks!
    Cheers,
    R-jay

    Hi Shabarish,
    Thanks for your answer.
    I guess you misunderstood my query. What I would like to do is not to read the content of the email, but to read the content of payload and includes it on email. Using receiver mail adapter as standard (without using module or UDF), and configuring it as to sending the payload, you are just sending an email to the recipient with an attachment without any message in the body.
    What I would like to know is how to send an email with details (on its body) taken from the information of the payload.
    Cheers,
    R-jay

  • Receiver Mail adapter - mail package - mail not received

    Hi guys!
    I'm using receiver mail adapter and when I want to use Mail Package (subject is assign dinamically based on mapping) I do not receive the e-mail. When I switch to not using Mail Package, the mail is sent correctly..
    In RWB everything seems to be ok, it says mail sent successfully... just not to my outlook
    Any ideas, what could be wrong?
    Thanx a lot!
    Olian

    Hi Stefan,
    thank you 4 reply..  I checked it. To be sure - I copied the content of the To tag and put it into my Outlook and sent an e-mail... It has arrived
    I can't understand this..
    Which fields are neccessary to fill? Is from, to and content enough? I think it should be...
    Thank you!
    Olian

  • Dynamic attachment name with receiver mail adapter and use mail package

    We need to send mapped XML payload as attachment (with dynamic name) to a recepient (recepient email id is part of input xml payload, but not part of the mapped XML payload).
    I could probably do this using the adapter module (as per the following link),
    http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    I would like to explore if this would be feasible using Mail package and XI payload.I already have a Java mapping that is converting the input XML to required Output format. If I am using Mail package (XI Payload), how do I go about sending this Output XML from java mapping as attachment to email id available in the input payload?

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

  • SAP PI: Using Variable Header  Binding in Receiver Mail Adapter

    Hello,
    I try to use Variable Header Bindings in the Receiver Mail Adapter. Therefore I wrote the following User-Defined-Function in a mapping:
    Java Function Start -
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName1");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName2");
    DynamicConfigurationKey key3 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName3");
    conf.put(key1, new String("Test1"));
    conf.put(key2, new String("Test2"));
    conf.put(key3, new String("Test3"));
    Java Function End -
    As expected I see the Attributes and Parameters in the Dynamic Configuration in the SAP XI Monitor:
    Dynamic Configuration Informattion Start -
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Mapping der Request-Message
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName3">Test3</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName2">Test2</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName1">Test1</SAP:Record>
      </SAP:DynamicConfiguration>
    Dynamic Configuration Informattion End -
    Now I configure my Receiver eMail Communication Channel and set the Variable Header Fields as follows:
       Adapter Specific Attributes: Checked
       Variable Transport Binding: Checked
       Variable Header (XHeaderName1): TSender
       Variable Header (XHeaderName2): TReceiver
       Variable Header (XHeaderName3): TOther
    With this configuration I would have expected three new Header fields in the Header of the eMail, the reicever gets. But they are not there.
    When I set standard attributes like THeaderTO, THeaderSubject a.s.o this works fine and the values are also set accordingly. Where it the mistake here?
    The PI version we are working with is PI 7.0 SP10.
    Your help will be highly appreciated.
    Thank you,
    Steffen

    Hi Luciana,
    Honestly, I cant really remember how or if it was resolved and I was just helping out on the issue, but another consultant continued with it, so unfortunately I cant be any help on this.
    Good luck!
    Cheers,
    Brad

  • How to use XML Anonymizer Module for receiver mail Adapter?

    Hi All,
             I would like to know how to use XML Anonymizer Module for receiver mail adapter so as to change the namespace to http://sap.com/xi/XI/Mail/30 from my original namespace? Thank you all in advance?

    Hi,
    This may help u:
    Replacing one namespace with another using XML Anonymizer Module
    Thanks
    Amit

  • Rename the zip file and send it using the Receiver Mail Adapter

    Hi,
    We have a custom module that will create multiple attachments. The result is then passed to the PayloadZipBean, which zips as per required.
    When we output this to a file adapter, we provide the file name as say "zippedfile.zip" the result is as expected.
    For example, if the custom module created 3 attachments with the names as file1.txt, file2.txt and file3.txt, the zip file zippedfile.zip, will contain 3 files as file1.txt, file2.txt and file3.txt.
    The issue that we are facing is when we use the mail adapter, the zip file is getting renamed to file1.txt.zip i.e to say that it takes the name of the main payload from the custom module (file1.txt)
    TextPayload txtpayload = message.getDocument();
    txtpayload.setContentType("text/plain");
    txtpayload.setName("file1.txt");
    moduleData.setPrincipalData(message);
    We tried using the MessageTransformbean but it doesn't seem to change the name of the file.
    Not sure where we are going wrong. Is it that the output of the payloadzipbean cannot be used and altered by MessageTransformbean?
    Is there any alternative as to rename the name of zipfiles and use it in the mail adapter?
    Appreciate any help on this regard.
    Regards,
    Shabz

    Solved.
    use Transform.ContentDisposition - attachment;filename="youfilename"
    Do read the mail adapter FAQ.
    The parameter can vary for different mail client.

  • Error on Receiver Mail Adapter (SMTP)

    Hi All,
    I'm going to exchange message within mail to mail scenario like synchronous one. Sender Mail Adapter is running well, it can take any email in inbox. but when I want to send the email back to the sender, the receiver adapter doesn't work. here is my config :
    Receiver :
    Transport Protocol   : SMTP
    Message Protocol    : XIPAYLOAD
    Adapter Engine        : Central Adapter Engine
    URL : smtps://[outgoing_mail] (use smtps because it use SSL)
    Tick 'Configure User Authentication'
    Authentication Method : Plain
    User : [Username]
    Password : [Password]
    Tick 'Use Mail Package'
    Content Encoding : Base64
    Tick 'Keep Attachment'
    The error Message in RWB :
    - failed to send mail: java.io.IOException: unable to create a socket
    - Message processing failed. Cause: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.io.IOException: unable to create a socket
    I was config and run successfully in Outlook Express.
    There was something wrong with my config in PI? Please Help me..
    Regards,
    Glenn

    Hi Nunes,
    I already test this mail account using microsoft outlook express. smtp port with ssl is 25 or port 587 work fine.
    my basis team had already investigate and do some config such as, install cryptolib, config sapconnect, etc, but no luck.
    here is some error log from our server:
    #2.0 #3 20:15:00:748#+0700#Error#com.sap.aii.af.sdk.xi.net.SMTPClientConnection#
    #BC-XI-CON-AFW#com.sap.aii.af.lib#00215ACD468400E200000001000009B4#2170350000001401#sap.com/com.sap.aii.adapter.mail.app#com.sap.aii.af.sdk.xi.net.SMTPClientConnection.send(Object)#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [0211dffffffee0023ffffff94]#101B37B806B611E0A2CF00215ACD4684#101b37b806b611e0a2cf00215acd4684#101b37b806b611e0a2cf00215acd4684#0#MS Queue Worker [Mail_http://sap.com/xi/XI/SystemRecv]#Plain##
    additional info ssl_debug(44): Starting handshake (iSaSiLk 4.31)...
    ssl_debug(44): Sending v3 client_hello message to <outgoing_mail_server>:25, requesting version 3.2...
    ssl_debug(44): SSLException while handshaking: Invalid SSL message, peer seems to be talking plain!
    ssl_debug(44): Sending alert: Alert Fatal: handshake failure
    ssl_debug(44): Shutting down SSL layer...
    any other suggestion?
    Edited by: Glenn Prasetya on Dec 15, 2010 4:40 AM

  • Receiver Mail Adapter message with PDF attachment

    Hi.
    We are trying to generate emails from the mail adapter that includes the plain text in the body of the resulting email and an attached PDF file. We receive the following structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:newMailRequest_MT xmlns:ns0="http:/pdk/sap/TorstenTest">
       <Sender/>
       <Receiver/>
       <BodyContent/>
       <Subject/>
       <Attachment/>
    </ns0:newMailRequest_MT>
    I have set up an interface and mail adapter to be able to produce emails with plain text in the body. I used SAP note 748024 for this.
    So right now I can make XI send emails with dynamic mail addresses. My problem lies in sending attached files with the mails as well.
    I have read most of the threads in here, but none of them seem to answer just how to include the attachment. Which field in the 'Mail' message type is used for the attachment??
    What needs to be added to the communication channel and adapter for it to include attachments, while the body of the mail still keeps the plain text message??

    hi
    I have used the following links to send the file as an attachement and as payload.
    so it may help u.
    links:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options , mail attatchment
    Sender mail adapter - PayloadSwapBean - Step by step - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    points if helpful.
    regards
    sreeni

Maybe you are looking for

  • I want to implement the image in my report

    Hi I am replicating some of the sample report  of SQL Servers in BusinessObjects XI R3.1. One of the SQL Sever's report is of product catalogue type that gives complete information like name, category, description along with the products image etc...

  • Lion's Mail 5.0, Need help!

    Hi guys, i've been using thunderbird on my previous snow leopard.. and the mail function just fit my need exactly.. where i download all the email when i get online and i can even acceess them when i'm off.. and another good things is that i'm able t

  • CO-PA problem during Go-Live

    Hi experts, I have a problem during go-live related to posting to co-pa I have scheduling agreement. I don't want to post it in co-pa. I excluded my code for this order type (E), but when the user goes to create the scheduled lines, SAP posts to co-p

  • Strange behavior of oracle database

    I have a instance in a db server and i access the databse from sqlplus through my client.today morning when I wanted to restart the database while opening the database it gave the following error. SQL> startup ORACLE instance started. Total System Gl

  • Video won't play on computer

    I have the latest Itunes on my computer, but my movies won't play and the trailers won't play on my computer.  Anyone know why?  Thank you.