Prerequisites To Use Mail adapter

hi All,
Are there any prerequisites to use Mail adapter in PI (like anydrivers etc ),pls guide me on this.

Hi Sagar
AFAIK there is no additonal drivers or specific installation for using mail adapter .
Please follow below links to setup a channel and test it out.
https://help.sap.com/saphelp_nw73ehp1/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm
856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
Best Regards
Srinivas

Similar Messages

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • Sending Formated email content using Mail Adapter !

    Hi,
    I would like to send email notification to customer using mail adapter, could you please to advise how to prepared the content of the email with little bit formated like sample below :
    Dear Madam / Sir
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :
    yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
    Best Regards,
    Since the constant function only can accept single line, how i can add change line.
    thank you and Best Regards
    Fernand

    Hi Fernand,
    There are a couple of blogs in SDN regarding sending formatted mail using Mail adapter. I guess there is one written by Prakash Arunachalam. Just do a search and it will give you some idea on using XSLT to achieve the result.
    If all you need is multi line in the content, use a UDF and use \n when ever you need a new line and \t for tab space.
    Regards,
    Jaishankar

  • Error while using mail adapter

    Dear All,
    We have recently transported a scenario from XI 3.0 to PI 7.1.
    In this scenario a BPM is configured which on getting any error triggers an alert mail (Mail adapter configured).
    Now while testing in PI 7.1, mail message is getting generated but mail are not received and following error is coming:
    "Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0"
    If anybody has faced this type of error kindly guide me in resolving this error.
    Regards,
    NJ
    Edited by: nishu jain on Jul 13, 2009 9:08 AM

    Failed to call the endpoint
    Check if you have given the correct details of the mail-server in your receiver mail CC.....also confirm that the mail server is up and running....
    Regards,
    Abhishek.

  • Sending File as attachment using Mail adapter with naming convention

    Dear All,
    I am working on a scenario in which my sender file adapter is sending one file named 'ABC.ok' in one of the folders in application server. I have to send the same file with the same name  to one of the folders at FTP and also to my customer at his email id.
    I have used File Content onversion at the receiver side and has selected adapter specific attributes due to which the required file is getting generated at FTP folder with the same name as that of the source. But how to send the same file using the mail adapter by keeping same name as "ABC.ok". Kindly guide me out in this.
    Regards,
    NJ

    what you need to do:
    1) Select ASMA in Sender and receiver File CC...already done
    2) Using the Dynamic Config UDF get the sender file name in the field Content-Type...for this you need to have a return statement in your UDF
    3) now before pushing this file name to the Content-Type you have to append (concat)the actual type of the file content (xml, txt)
    so your entire Content-Type node will have something like text/plain; name="abc.ok"
    SAP Note has reference on how to do this:
    https://service.sap.com/sap/support/notes/856599
    From the note:
    Q: How can I set the file name of a mail attachment?
    Regards,
    Abhishek.

  • Change attachment name using mail adapter

    Hi All,
    I have a problem changing the attachment name in my scenario. I use Mail scenario to send a pdf Attachment from R/3 to email address. Everything working fine except the attachment name that becoming untitled.pdf and untitled.txt.
    Communication Channel setting :
    message protocol : xipayload
    transport protocol : smtp
    checked use mail package
    checked keep attachment
    I have use MessageTransformBean in my receiver adapter, but no luck. It was produce an error.
    anyone have an idea to solve my problem?
    thx,
    Robby

    Hi,
    You need to go to the Module tab of the Mail adapter receiver communcation channel and give the parameter as Transform.contentDisposition and its value as attachment ( since you needed the output to be sent as an attachment) and give the name of the attachment as you required.
    Please see the help page : [http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm] for more details and more options of the parameters.
    Regards,
    Kalpana.

  • How to map when using mail adapter

    Hi:
    I'm doing a test with mail adapter in XI. The scenario is I put an XML representation content based on the outbound interface used by sender mail adapter directly in inbox mail content and send it. At the other side, I want to using receiver file adapter sotre the content as a file in file system. But some mapping is needed.
    What I have already done is to define one outbound interface(<b>IF_Mail</b>) which is used by sender mail adapter.IF_Mail using the structure like
    <MT_Mail>
    <mail> 
    </mail>
    </MT_Mail>
    I also defined an inbound interface(<b>IF_File</b>). IF_File is using the structure like
    <MT_File>
    <file> 
    </file>
    </MT_File>
    I want to map the value of <mail> in mail to <file> in file. I did structure mapping between two message types in IR and all of the configuration in XI.
    I put the below content
    <MT_Mail>
    <a> test
    </a>
    </MT_Mail>
    as inbox mail content and send it. But when I monitor the XI message. It always says something is wrong with mapping.
    what am I doing wrong?  Thanks.

    Hi Oscar,
    copy the payload of incoming message (SXMB_MONI) to your desctop and test the mapping inside the IB Repository (Test Modus of IF-Mapping or Message Mapping), switch the trace to "all".
    Regards,
    Udo

  • Error: Unable to create socket(While using Mail Adapter in receiver side)

    Hi Experts,
    I have tried the File to Mail scenario. While component monitoring the Sender communication is working fine but the receiver communication is giving error like Unable to create socket. Please help me to solve this error.
    Regards,
    Nutan

    HI,
    before using the mail adapter have you specified all the attributes porperly as well as have setup the SMTP Exchange Server address
    For FAQs about the mail adapter, see SAP Note 856599.
    Please read the below thread, it might be helpful/
    SOAP Receiver   java.io.IOException: unable to create a socket
    Thanks
    Swarup

  • How t o get  the sunject in reciever mail using mail adapter

    hi all.
    i had created a file to mail scenario .
    in archive mapping program it was defined to which mailids of reciever side should be mailed and the body of the mail.
    but i just want to know if there are any settings under reciever mail adapter to get the subject uner reciever mails and an increment value (the number of times that the mailget posted in reciever mails) to be displayed in subject line of mail after descryption of the subject.
    waiting for great answer.
    cheers.
    seeta ram.

    Hi Seeta,
    you have to use a UDF in which you define a Container
    http://help.sap.com/saphelp_erp2004/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm
    http://www.erpgenie.com/netweaver/xi/mapping1.htm
    You can make a counter which increments every time you call the UDF.
    Use the UDF in your mail package with the subject.
    Hope this helps.
    Dominic

  • Content Text using Mail Adapter

    Hi everybody, and happy New Year.
    I've got this kind of scenario:
    2 messages (material and document) and I must use them both to compose the body of an e-mail. Only, the mail adapter just has 1 content field, of type string. My problem is that I have to compose a complex text, which is difficult to do by using the said content field.
    I know it should be possible to use UXML to compose the text, but I have no clue where to start from.
    Any suggestions guys? guides, tips, hints, whatever.
    Many thanks in advance for your help!

    Hi,
    you can do it as I've shown in my blog for example:
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

  • Design: Downloading attachement using Mail adapter

    Hi Experts
    I am currently building an interface which requires attachment to be downloaded in XI box. Is this possible using sender mail adapter. Could someone validate the feasibility of the design.
    Requirement in Brief
    A bank is sending a file through e-mail as an attachment to a file system and XI has to move the file to target system using FTP adapter. Now we want automation on source end. Instead of manually downloading the file to file system we want file to be direcly posted to target system.
    So few questions with regard to requirement:
    1) Can I download the file from mail in XI and then post the downloded attachement to Target system.
    Could someone please provide me with the steps for downloading the file to XI??
    Regards
    Abhishek Mahajan

    Hey
    Please have a look at the following blog
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Thanx
    Aamir

  • Data shown under reciever mail using mail adapter

    hi.
    i have created a file to mail interface ,created an imported archieve and  i did tested
    but i have got the data in mail as
    Please find the attached document:
    <table><tr BGCOLOR="#CCCC99"></tr><td></tr>005000002200 </td><tr></table>
    where 005000002200 only is the data .
    how can i remove all the othere stuff.
    cheers.
    sita ram

    Hi.
    hte foloowing is the my imported archieve program.
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.Coj.co.za/FileToProxyTriggeringFile">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
      <xsl:variable name="break">&lt;br&gt;</xsl:variable>
      <xsl:variable name="tableB">&lt;table&gt;</xsl:variable>
      <xsl:variable name="tableE">&lt;/table&gt;</xsl:variable>
      <xsl:variable name="trB">&lt;td&gt;</xsl:variable>
      <xsl:variable name="trE">&lt;tr&gt;</xsl:variable>
      <xsl:variable name="tdB">&lt;/tr&gt;</xsl:variable>
      <xsl:variable name="tdE">&lt;/td&gt;</xsl:variable>
      <xsl:variable name="nbsp">&amp;nbsp;</xsl:variable>
      <xsl:variable name="thB">&lt;tr BGCOLOR="#CCCC99"&gt;</xsl:variable>
      <xsl:template match="/">
      <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>ABSA EFT confirmations</Subject>
      <From>[email protected]</From>
      <To>[email protected]</To>
      <Content_Type>text/plain</Content_Type>
      <Content>
      <xsl:text xsl:space="preserve">Please find the attached document:</xsl:text>
      <xsl:value-of select="$break" />
      <xsl:value-of select="$break" />
      <xsl:value-of select="$tableB" />
      <xsl:value-of select="$thB" />
      <xsl:value-of select="$tdB" />
    <xsl:for-each select ="ns0:MT_FILESEND/REC/ROW">
      <xsl:value-of select="$trB" />
      <xsl:value-of select="$tdB" />
      <xsl:value-of select="string1" />
      <xsl:value-of select="$nbsp" />
      <xsl:value-of select="$tdE" />
      <xsl:value-of select="$trE" />
      </xsl:for-each>
      <xsl:value-of select="$tableE" />
      </Content>
      </ns1:Mail>
      </xsl:template>
      </xsl:stylesheet>
    and the output thati got is
    Please find the attached document:<br><br><table><tr BGCOLOR="#CCCC99"></tr><td></tr>005000004624 </td><tr></table>
    and i can see the message in sxmb_moni.
    and the FCC parametes that iam using is
    ROW.endSeparator  'nl'
    ROW.fieldNames   string1
    ROW.fieldFixedLengths   500
    ROW.fieldSeparator  'nl'.
    wwaiting for u r reply.
    cheers.
    sita ram.

  • Include attachments in a xml file without using mail adapter

    Hello Experts,
    Is there a way to include attachments like pdf or excel in a xml file?
    It is a file to file scenario in which i have to include the attachment in the output file.
    Thanks and regards,
    Merrilly

    Hi,
    Check this links,
    PDF
    SAP Network Blog: XI: Read data from PDF file in Sender Adapter
    /people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter
    SAP Network Blog: XI: Generate PDF file out of file adapter
    /people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    EXCEL FILES
    SAP Network Blog: XI: Generating Excel files without the Java nor the Conversion agent not possible?
    /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible
    SAP Network Blog: Read Excel instead of XML through FileAdapter
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    Regards,
    Phani
    Reward points if Helpful

  • Send a XML file using the mail adapter

    HI ,
    I have to send an incoming xml message as a attachment in the mail using mail adapter .
    how can I achieve this .
    Thanks
    Nikhil

    Hi Nikhil,
    Just check with this blog-
    /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] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Creating mails with attachments from flat text files
    Hope this helps..
    Regards,
    Moorthy

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

Maybe you are looking for