Mail adapter parameters

Hi,
I am trying a scenario where i am picking up a file using a file adapter.
I have to send that file as a attachemnt using the mail adapter to my gmail id.
Can it be done using the mail adapter?
what parameters should i enter in the mail adapter?
Thanks,
Vignesh

Hi Vignesh,
Please check the sap help for receiver mail adapter configuration
http://help.sap.com/saphelp_nw04s/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
Thanks!

Similar Messages

  • MAIL Adapter Transformation Bean

    Hi Guys,
    I am working on Mail 2 CSV file interface. Can any one provide me information on Sender side MAIL transformation Bean  to convert  CSV file to XML.
    Thnx,
    Siva.

    Hi Prateek,
       Actual my requirement is
    customer send us a CSV file format attached to the email and i have to extract it from the mail and put in the file location. No mapping or anything required.
      Customer sends us orders via email. The email contains some text but the order details / requirements are contained within a CSV file attachment.
    Customer sends emails to us which represent their orders
    The emails always include a CSV file attachment
    i need to extract file attachment
    Extracted file should be saved to network share folder.
    My doubt is in below wiki Mail 2 File Scenario attachment in the form of xml , but in my case attachment format is CSV.
    Could you please help me on this how can i handle this CSV mail attachment.
    http://wiki.sdn.sap.com/wiki/display/XI/StepbyStepMailToFileScenario u2013 Mail 2 File Scenario
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step - Michael blog
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm - Payload swap bean
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm - Sender MAIL Adapter parameters (Configuring the Sender Mail Adapter)
    Payload Swap bean not working - Payload Swap bean module parameters
    Thnx,
    Siva

  • Conversion Agent - Mail Adapter integration issue

    Hi Experts,
    I have a Conversion Agent Serializer for generating a text file on the receiver side.
    The Serializer works perfectly with the File Adapter on the receiver
    side and generates the text file.
    Now I have a requirement to send this file as an attachement in an email.
    When I include the Serializer Module in the File Adapter
    (Receiver), the email is not triggered.
    The Communication Channel Monitoring shows the following:
    2007-04-29 07:34:55      Success         Message successfully received
    by messaging system. Profile: XI URL:
    http://bibox01:50000/MessagingSystem/receive/AFW/XI Credential (User):
    PIISUSER      
    2007-04-29 07:34:55      Success         Using connection
    Mail_http://sap.com/xi/XI/System. Trying to put the message into the
    receive queue.
    2007-04-29 07:34:55      Success         Message successfully put into
    the queue.    
    2007-04-29 07:34:55      Success         The message was successfully
    retrieved from the receive queue.     
    2007-04-29 07:34:55      Success         The message status set to DLNG.
    2007-04-29 07:34:55      Success         Delivering to channel:
    FIle_Mail     
    2007-04-29 07:34:55      Success         MP: entering 
    2007-04-29 07:34:55      Success         MP: processing local module
    localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean    
    2007-04-29 07:34:55      Success         TransformationName:
    TravelexBAI_Serializer
    2007-04-29 07:34:56      Success         CM_Transformation_succeeded  
    2007-04-29 07:34:56      Success         MP: processing local module
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean      
    2007-04-29 07:34:56      Success         Mail: message entering the
    adapter
    2007-04-29 07:34:56      Success         Mail: Receiver adapter entered
    with qos ExactlyOnce  
    2007-04-29 07:34:56      Success         Mail: calling the adpter for
    processing    
    2007-04-29 07:34:56      Success         Mail: call completed 
    2007-04-29 07:34:56      Success         Mail: continuing to response
    message 4ee64c80-f5d0-11db-8932-000bcdcf4920  
    2007-04-29 07:34:56      Success         Mail: sending a delivery ack
    2007-04-29 07:34:56      Success         Mail: sent a delivery ack    
    2007-04-29 07:34:56      Success         MP: leaving  
    2007-04-29 07:34:56      Success         The message was successfully
    delivered to the application using connection
    Mail_http://sap.com/xi/XI/System.     
    2007-04-29 07:34:56      Success         The message status set to DLVD.
    The Audit log above states that the Serializer was executed successfully
    and the the Mail Adapter was called.
    The Message Content shows the Payload being generated correctly. But the
    Email is still not triggered.
    Could someone please provide some help with pinpointing the issue over here.
    Michael, are you there??
    Thanks & Regards,
    Shobhit

    Hi Ahmad,
    The mail adapter works perfectly fine when I remove the Conversion Agent module from it. And the Conversion Agent module works perfectly fine with the File Adapter on the receiver side. So that authenticates that both the objects (Mail Adapter - receiver & Conversion Agent Serailizer module) are configured correctly as individual objects.
    I have used the following parameters in the receiver mail adapter:
    PARAMETERS
    Transport Protocall: SMTP
    Message Protocall: XIPAYLOAD
    URL: smtp://xyz.com
    Content Encoding: Base64
    Keep Attachments: <TICKED>
    MODULE
    Processing Sequence==>>
    Module Name: localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean
    Type: Local EJB
    Module Key: 1
    Module Configuration==>>
    Module key: 1
    ParameterName: TransformationName
    Parameter Value: <SerializerServiceName>
    Regards,
    Shobhit

  • Need of security parameters in reciever mail adapter

    helo all.
    i just want to know the need of security parameters  and persist duration in reciever mail adapter.
    waiting for ur response.
    bye.
    regards.
    seeta ram.

    Hi Seeta Ram,
    If you want to encrypt e-mails and give them a digital signature in the corresponding receiver agreement in the Integration Server then Security Parameters are used.
    Persist Duration is used for security archiving.
    This link will help you
    http://help.sap.com/saphelp_nw70/helpdata/en/4e/c153426da9bd30e10000000a155106/content.htm
    Regards,
    Sreenivas
    Message was edited by:
            Sreenivas Nettem

  • Mail Adapter - Dynamically maintaining To and From Parameters

    Hi all,
    I am using the mail adapter as receiver in my scenario where i need to set up the TO and FROM parameters dynamically in the adapter configuration. Can any body please suggest how to do that?
    Thanks
    -Kulwant

    Kulwant,
    Did you gone thru this link?
    http://help.sap.com/saphelp_nw70/helpdata/EN/6b/4493404f673028e10000000a1550b0/content.htm
    use the below code
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail","THeaderTO");
    String to_add = "[email protected]"
    conf.set(key, to_add);
    return ""; 
    raj.
    Edited by: Raj on Oct 29, 2008 3:55 PM

  • Receiver Mail Adapter Module Parameters

    Hello PI Experts,
    Can anyone pls provide me Mail adapter module parameter details for xml to txt file conversion. I have found a few but none of them are working, can you pls provide me some active links.
    Thanks,
    Sri

    I need MAIL Adapter module transformation parameter for converting my attachment from xml to text file -
    I have gone thro few forums and modified my comm channel, but still getting xml file as an output attachment  instead of a text file.
    Can anyone please suggest me how to change the module parameters to covert from xml file to text.
    I have added these module processing - please help.
    Processing sequence
    localejbs/AF_Modules/MessageTransformBean - Local Enterprise Bean - XML2Plain
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean - Local Enterprise Bean - Mail
    Module configuration
    XML2Plain - xml.endSeparator - 'nl'
    XML2Plain - xml.fieldNames  - Field1,Field2,Field3
    XML2Plain - xml.fieldSeparator - |                     |
    XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
    XML2Plain - Transform.ContentDisposition - attachment;filename="extract_p.txt"
    XML2Plain - Transform.ContentType - xml/plain;charset='UTF-8";name="extract_p.txt"
    XML2Plain - xml.recordsetStructure - Details
    Thanks,
    Sri

  • Mail Adapter  connection parameters

    Hi
    I have done the following scenario.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    The source file is picked and in SXMB_MONI it shows checkered flag but not reaching the target.
    what should I give in connection parameters for Mail Server incase if I want to sent my file to gmail/yahoo mail
    Thanks,
    srinivas

    Srinivas,
    Your receipient email address (gmail/yahoo) has nothing to do with connection parameters.
    Con params in adapter refer to a mail server to connect and send email to the given receipient email addres...this mail server is needed coz XI doesnt have mail server built in...it uses external mail servers
    hope its clear now
    praveen

  • Sender "Mail" adapter - CSV file attachment

    Hi there
    I'm looking for some help in configuring a sender mail adapter that receives ".csv" files. I did read some blogs that mention using the "PayloadSwapBean" module to read the mail attachment instead of the mail content. My problem is to now convert the ".csv" file into a message. Is there a module that I can use ( is it the "MessageTransfomBean" ) and how. Any help would be appreciated.
    Thanks
    Salil

    Hi Salil,
    If you want to send a mail with a body and attachments, the message sender HAS to provide an XI message with attachments. I doubt a CSV file does justice.
    As Renjith said you need to convert CSV to XmL.
    A short description about the Standard Modules:
    MessageTransformationBean is a standard module used to apply the XSLT mapping to the adapter module by using <i>Transform.class</i> ( This xslt mapping is done to create a mail package, Dont confuse with the actual mapping in your case this is NOT for converting csv to xml).
    Also this module can be used to change the name and type of payloads by using <i>Transform.contentType</i>, <i>Transform.contentDisposition</i>, <i>Transform.contentDescription</i>.
    PayloadSwapbean is a standard module for replacing payloads with other payloads (SWAP)
    If you want to give each attachment a certain name use Parameters, <i>swap.keyname</i> for name of the payload and <i>swap.keyvalue</i>.
    I Hope the use of standard modules is understood.

  • Sender Mail Adapter Error: exception caught during processing mail message;

    HI , I am configuring mail to file scenario. Need to read mail content (no need to capture From,TO or Subject details) and create a file with the content in the mail.
    Need to read mails from microsoft outlook. Exchange server has been configured for POP3 protocol.
    Following are the details provoding in sender mail adapter:
    URL: provided url in the format: pop://<server name>
    Authentication method: plain
    provided user credinetions to access mails.
    poll interval - 1min
    content encoding none.
    processing parameters : quality of service-exactly once
    Since there is no need to capture From,TO or Subject details, didn't select the option - use mail package.
    Verified for unread mails in the mail box and made sure that there are few unread mails.
    Also, created data types and other components in IR and completed mapping.
    But after starting sender mail communication channel, getting error "exception caught during processing mail message; java.lang.NullPointerException" in RWB-adapter-communication channel monitoring.
    please let me know what needs to be done to resolve this error.
    Thanks.

    HI Stefan, i tried, but still it is giving same error. Yes, i am able to access outlook mail with the user credentials given in the communication channel to access exchange server.
    I am using message protocol: xipayload . Also since i dont have to capture TO,from,subject details., created data type just with one element of type string, not in the standard format .Does this makes any difference.

  • Sender Mail Adapter - default interface name

    Hi,
    I need to receive through one e-mail sender channel tree different kind of messages.
    In sender mail adapter I specify ecept other parameters "Default Interface Name". When I send a message with a same as defined in an interface the message is processed correctly.
    But when I send a different kind of message then I get an error : "Receiver could not be determined".
    Is any way around how through one sender e-mail adapter receive a different kinds of messages ?
    Thanks for any help,
    Marian

    Hello Marzian,
    have you find a solution for this problem?
    We're facing the same issue.
    thanks,
    -Peter Ha

  • Purpose of advanced properties in sender mail adapter

    helo all.
    hi i just wanna know the usage of
    delete messages once read
    generate fetch report
    security parameters SMIME
    Default XI parameters
                       under sender mail adapter.
    waiting for your great response.
    bye.
    regards.
    seeta ram.

    hi,
    <i>delete messages once read</i>
    If you have selected IMAP4 as the transport protocol, you can specify here whether the messages are to be deleted on the e-mail server after reading.
    You can then specify a Folder for Deleted Messages on the server.
    <i>generate fetch report</i>
    If you want to generate a report for every adapter poll procedure, set the indicator.
    An XI message with the following information is generated:
    Interface namespace: http://sap.com/xi/XI/Mail/30
    Interface Name: FetchReport
    <i>security parameters SMIME</i>
    If you want to decrypt and validate encrypted and digitally signed e-mails in the corresponding sender agreement in the Integration Server or in the PCK, set the S/MIME indicator.
    refer this for the same and more info
    http://help.sap.com/saphelp_nw70/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm

  • Email attachment name in sender mail adapter to the receiver file adapter

    HI ,
    Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
    Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
    I assume , i need to do following steps :Please confirm.
    1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
    2. select ASMA option in advanced tab in sender mail adapter
    3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
    4. Also select file name option in ASMA in sender mail adapter
    Thanks,
    Vamsi

    Hi Vamsi,
    your scenario is also described here: Re: sender mail adapter - attachment name
    If you use the Module getAttachmentName, which is described here,
    http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
    your scenario should work as you described it.
    You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
    Fileadapter (http://sap.com/xi/XI/System/File/FileName).
    regards,
    Daniel

  • Receiver mail adapter - Payload as a Text attachment

    Hi,
    In my proxy to mail adapter scenario, when i want to send payload to email as a Text email, where i need to content conversion in XI (XML to Txt file)
    when i send payload, currently i am receiving as a XML file.
    I try to follow like Rushikesh Deshmukh XI thread: Text Attachment in Mail Adapter  in XI forum(topic)
    I have having following config
    Processing Sequence
    localejbs/CreateAttachment Local Enterprise Bean XML2Plain
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    Module Configuration
    XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
    XML2Plain Transform.ContentType text/plain;charset=utf-8
    XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
    XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
    XML2Plain xml.addHeaderLine 0
    XML2Plain xml.conversionType StructXML2Plain
    XML2Plain xml.recordsetStructure Header1000,Header2000
    Please suggest some solution."
    Could you tell me exactly where i need to do all these setting and
    do i need import localejbs/CreateAttachment Local Enterprise Bean XML2Plain...I mean shall i add same in my processing sequence
    give in detail ? (in Receiver mail adapter Communication channel,  advanced mode additional parameters)
    I tried to follow this also
    http://help.sap.com/saphelp_nw04/helpdata/EN/4e/c153426da9bd30e10000000a155106/frameset.htm
    but i could not find much info on this help.sap.com reg. req.
    Thanks
    Prabaharan

    Hi
    f i create like this Receiver CC (module Tab)
    number: 1
    Module Name: localejbs/CreateAttachment
    Module Type: Local Enterprise Bean
    Module Key: mail
    is it enough? do i need any other setting like this
    Did you deployed CreateAttachment on PI server. As this is not a standard SAP module this is a custom module?
    mail as module key is already used by XIMAILAdapterBean use some other key for CreateAttachment
    Settings are fine for the Module
    Processing Sequence
    localejbs/CreateAttachment Local Enterprise Bean XML2Plain
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    Module Configuration
    XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
    In this:
    Module Key: XML2Plain
    Parameter Name: Transform.Class
    Parameter Value: com.sap.aii.messaging.adapter.Conversion
    is it right?
    Processing sequence is fine
    XML2Plain Transform.ContentType text/plain;charset=utf-8
    XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
    XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
    XML2Plain xml.addHeaderLine 0
    XML2Plain xml.conversionType StructXML2Plain
    XML2Plain xml.recordsetStructure Header1000,Header2000
    can i anyone explain how to these settings?
    Is this key valid to provide inputs to the module check with the code for this module
    This looks like valid for MessageTransformBean ro StrictXMLtoPlainBean
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 15, 2008 5:34 AM

  • 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

  • Regarding Receiver Mail adapter.

    Hi experts,
    iam looking at one off the weblog whick  Michal Krawczyk have created.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    in this weblog michal have told to download the XSD file from service market place  and upload it in IR External definition it gives us target structure.What is the use off it, we can directly create the target structure.
    And also one more dought what is the use off checking parameter in mail Attributes use mail package.I dont have much knowledge on mail adapter please help me in this issue.
    i want to send parameters dynamically into receiver mail adapter in my project ie(TO,FROM,SUB and CONTENT) please send links and doc's on it.
    Note: Helpfull answer will be rewarded.
    Thanks & regards,
    Phani

    Hi raj,
    Once again thanks for the reply,I will explain my object,its is any 2 senarios in one object.
    1) file to proxy were i upload employee details in to infotype2010 after inserting what ever error records i will l store them in error table.
    2)ater geting error records if i get more then 25 i have to send file path and error records to receiver side. or if i get all sucess also i have 2 send sucess flag into receiver side.
    but i haveto pick data from different systems and i have to send the data into different mail ids i have to generate TO FROM CONTENT dynamically.
    onsite have prepared TS(Tecnical specs) in that spec they gave XIALL and SMTP.
    so my question is using this parameters can i post them dynamically or  not.
    if YES ? then how??
    please help me in this issue.
    if u still dont understand give me ur id  i will send my TS.
    Thanks and regards,
    phani

Maybe you are looking for