Sender Mail Adapter able to retrieve HTML emails?

Hi there,
I stamped over an issue that look like an adapter limitation, would like to hear you opinions.
We´re using a POP3 account configured in a Sender Mail Communication Channel with XIPAYLOAD, with this attempts:
- with or without the Mail Package;
- any type of encoding;
- must keep attachments.
In all of this options always the retrieved email from the POP Server comes in TEXT format.
Does the Mail Adapter support HTML emails?
Does the Mail Adapter support mixed/alternative Content-Type?
>Current version: SAP PI 7.0 SP14
>Mail Server: Lotus Domino 7.0.x
Regards,
Marlo Simon.

Ok,
I´m using the Sender Mail Scenario.
I tried the MessageTransformBean (Transform.ContentType) to force the Content-type to text/html and it made no difference.
Is there any Advanced parameter that would help? No docummentation from SAP on those ones.
I want to keep the original email body, but looks like the adapter only read plain text.
Rgds,
Marlo Simon.
Edited by: Marlo Simon on Feb 5, 2010 2:23 PM

Similar Messages

  • Sender Mail Adapter - Need to pick all email only with subject "Send to Business Partner "

    Hi Experts,
    I have a mail to file scenario where I need to pick all emails with subject as "Send to Business Partner".
    I have seen one mail attribute SHeaderSUBJECT.
    Can I use this attribute to set a condition like SHeaderSUBJECT = "Send to Business Partner"  some where in configuration?
    Regards.
    Sree.

    Hi Hareesh,
    I am OK with that approach, but need to pick based on email subject.
    I have seen one of my previous project where if i send an email with "PI Process" subject then it was picking processing in PI.
    But i am not recollecting exactly what to do to get the same.
    Any other ideas please.
    Regards,
    Sree.

  • Sender Mail Adapter consegue ler emails com HTML?

    Olá pessoal,
    Encontrei um "issue" onde estou deconfiado de uma limitação do Mail Adapter.
    Gostaria de ouvir suas opiniões.
    O cenário usa um Canal de Comunicação do tipo Mail com XIPAYLOAD em uma caixa POP3, com as seguintes variantes:
    - com ou sem Mail Package;
    - com ou sem encoding;
    - mantendo os anexos.
    Independente das variações acima o resultado do email proveniente do POP é TEXTO.
    Será que o Mail Adapter suporta mensagens HTML?
    Será que o Mail Adapter suporta multipart/alternative Content-Type?
    >Versão do PI: SAP PI 7.0 SP14
    >Mail Server: Lotus Domino 7.0.x
    []´s
    Marlo Simon.

    Marlo,
    o content type é lido a partir do MIME Header que o Cliente de email que enviou a mensagem cria.
    Em geral, mesmo colando um conteudo XML no corpo do email, se o Content Type no Header vier text, o adapter vai interpreta-lo como texto.
    Se vc sabe que o conteudo sempre vai ser um XML, existe uma maneira de forcar que o adapter sempre sete o content type como xml, atraves do parametro avançado IMail.AssumeXMLContent. Veja o help do Sender Mail Adapter:
    Advanced Mode
    To specify additional parameters in the adapter configuration, set the Advanced Mode indicator.
    Specify the additional parameter names and parameter values in the table:
    ●      For the security settings, enter values for the receiver party and receiver service here.
    ●      In the table, set the parameter IMail.AssumeXMLContent = true. The text of the message is then interpreted as XML and is copied unchanged to the mail package. If this parameter is not set, the information is copied from the content type of the MIME header. If the type specified there is application/xml or text/xml, the text of the message is copied as XML; otherwise it is copied as text.
    Abs,
    Henrique.

  • How to retrieve client certificate information from sender mail adapter

    Hi, expert:
    I have a requirement to verify the validation of coming email with digital certification. The mail is with digital certification. If the coming email is valid, I 'll get the attachemt of the mail for further processing. I have a sender mail adapter and receiver file adapter configued.
    I have already my own developed adapter module, which is configued in mail adapter. My question is how to retrieve the detailed certificate information in the adapter module developed by myself. Is it feasible?
    Thanks a lot.

    The WL-Client-Proxy cert should be the cert used on the proxy side if SSL is configured between Apache and WebLogic, so I believe that is the reason why that does not work. Basically, the problem here is that SSL is end-to-end, and the two ends of this transaction are the client and apache.
    That said, when you add the +ExportCertData option, this should record the client's SSL certificate in the vairable SSL_CLIENT_CERT.  So you should be able to use request.getAttribute("SSL_CLIENT_CERT").
    See:
    http://www.modssl.org/docs/2.8/ssl_reference.html
    If this doesn't work for you (which is possible if the WL_Proxy is doing something funny to the request), it is probably best just to dump out the entire contents of the session, and see what you have:
    for (Enumeration e = request.getAttributeNames() ; e.hasMoreElements() ; ) {
    String attr = (String)e.nextElement();
    System.out.println("ATTR = " + attr);
    System.out.println("VAL = " + request.getAttribute(attr));
    If you can't see any SSL certificate there, you will have to work out some way to pass this on manually.
    cheers,
    Trevor

  • Sender Mail Adapter - html body mail

    Hello Everybody,
    I'm facing this strange problem:
    I receive an e-mail with an XML attachment with a sender mail adapter and I use the PayloadSwapBean to let the attachment be the real payload as explaned in this blog
    <a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step:///people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    If I receive mail in text/plain format everything works fine, but as soon as I get an email with an html body (content-type: multipart/alternative; boundary=...) it doesn't any more (In the XI  Monitor i still se 2 payloads, but I can only open the one with the attachment).
    In this case the mapping is stuck in "scheduled for outbound process" status and the XI queue gets blocked with status "SYSFAIL" giving this error "Access via 'NULL' object reference not possible".
    Is there any way to force XI digest also HTML e-mails?
    As always, thanks a lot for your help.
    Daniele

    Thanks Akshay,
    this really worked!
    Fyi I'm using XIPAYLOAD option. I added in the module chain, before the PayloadSwapBean, a MessageTransformBean with this parameter:
    Transform.ContentType - text/plain;charset=uft-8
    this way I can also see the massage body in the monitornig.
    Hope this will be helpful for someone else.
    Regards,
    Daniele

  • Sender mail adapter - filter emails by attachment?

    Dear experts,
    I have a sender mail adapter that picks an XSL (EXCEL) attachment from an incoming email and converts it (with a custom adapter module) to XML.
    But now how can I make the adapter only process emails with XLS - attachments? In that Inbox I also have emails with HTML-attachments for example. And now my adapter also wants to process those messages.
    In my adapter module that makes XLS to XML I see an exception in RWB but the message still gets through to SXMB_MONI where it gets stuck with a red flag.
    Can I somehow tell the adapter to only process emails with XLS attachments?
    Or can I stop the processing in the adapter module that converts XLS to XML?
    Thank you for any input or ideas on this!
    Best regards,
    Peter
    PS: I am using this code to convert XLS to XML:
    http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns

    Hello ChizzT,
    Thank you for your idea. I went with this one and it worked.
    Best regards,
    Peter

  • 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

  • Sender Mail Adapter - forcing content as an attachement

    Hi all,
    We are using the Sender Mail Adapter to pull emails from the inboxes of some users of an exchange server.  We use the Mail Package option.
    We have noticed that the content of the emails are by-default added as attachments when there are no real attachments to the emails.  However the content is not added as an attachment when one or more attachments are present in these emails.
    Is there a way of forcing the Sender Mail Adapter to always add the content as an attachment and keeping the other attachments as well?  and of course maintain the Mail Package message type as the main payload...?
    Many thanks,
    Aldo

    Hi Stefan,
    Thanks for your reply.  I am glad to hear that I am wrong again )
    In your opinion is it possible to force the Outlook Exchange server to add the content attachment every time?  I mean by doing some configuration on it...?
    The reason why we would like to do this is because when - in the content tag of a Mail Package message - we have MIME message parts that are of content-type text/html we are having problems in decoding the html back to a readable format.
    To do this we use the apache QuotedPrintableCodec Java class.
    This works fine when the content type of the message is just text/plain but we get an exception when we try with text/html.
    The exception we get is:
    org.apache.commons.codec.DecoderException: Invalid URL encoding: not a valid digit (radix 16): 13
    I don't know if this is because of the two character sets we have in the payload (utf-8 and iso-8859-1) or if it is for other reasons...
    If you could help me figure out how to forward any HTML email to another system in a readable format it would be great.
    Thanks for your support,
    Aldo

  • Sender Mail Adapter with PayloadSwapBean

    Hello Experts!
    I have a Sender Mail Adapter receiving emails with attachments! I'm using PayloadSwapBean, because I have to manipulate (to do mapping) the XML attachment.
    Sender Mail Adapter Configuration:
    Default Interface Namespace = urn:mynamespace.com
    Default Interface Name = abs_async_myInterface
    swap.keyName = Content-Disposition
    swap.keyName = Content-Description
    swap.keyValue = attachment;filename="MailAttachment-1.xml"
    swap.keyValue = MailAttachment-1
    Well, my problems are:
    1) Although my Default Interface Namespace is urn:mynamespace.com, sometimes the namespace that cames to SXMB_MONI is http://sap.com/xi/XI/System/Mail. In that case, an Receiver Determination error happens.
    2) My XML can be the first (MailAttachment-1), the second (MailAttachment-2), the third (MailAttachment-3), or any other attachment position. Since my swap.keyValue is set to "MailAttachment-1", I'm able to pick the XML only if it is the first attachment.

    Hi Julio,
    Writing an Adapter Module for the same can make your task easy.
    Thanks'
    Sunil Singh

  • How to determine the protocol to use in Sender mail Adapter ?

    Hi All
    Can i use my Microsoft Exhange Server address while configuring Sender Mail Adapter .? If yes , then which protocol i can use out of IMAP and POP ?..
    How do i determine which protocol i should use to connect to my exchange server ?
    Thanks
    rohan

    Hi Rohan,
    //Can i use my Microsoft Exhange Server address while configuring Sender Mail Adapter .?
    Yes, you can.
    //If yes , then which protocol i can use out of IMAP and POP ?..
    You can use either of them. To know more on IMAP and POP, i would suggest you go through these links,
    http://www.trincoll.edu/depts/cc/documentation/email/IMAP_vs_POP/default.htm
    http://www.imap.org/papers/imap.vs.pop.brief.html
    If your are using IMAP, you will have to specify, which folder from which you wnaty the emmail to be retrived, this is not needed for POP.
    Hope this helps,
    Regards,
    bhavesh

  • Error when using Variable Transport Binding in Sender Mail Adapter

    Hi,
    I am using the Sender Mail Adapter to receive an email, convert the attached tab delimited text file into xml and map it to an IDOC.
    I am using PayloadSwapBean and MessageTransformBean in order to do this, and this all works perfectly.
    I am now trying to access the Adapter Specific Message Attributes to retrieve the SHeaderFROM attribute from the message and map it to a field in the idoc.
    However when I check the "Variable Transport Binding" option in the Advanced tab of the mail adapter, the message no longer goes through to SXMB_MONI and I get the following error in the Java logs.
    Transmitting the message to endpoint http://sapserver:53500/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Error during parsing of SOAP header.
    Any ideas why this is happening?
    Thanks,
    Brad

    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

  • Duplicate messages in sender mail adapter

    Hi,
    We are using the sender mail adapter to retrieve messages from an IMAP mail server. Messages are being picked up correctly, but when we have large messages (with e.g. PDF attachments) things go wrong.
    The time it takes to retrieve the mail message is longer than the poll time. In this case the adapter logs in again in the mail server to retrieve the first new message from the inbox. However the first adapter threat is already retrieving that message. This results in a duplicate message in XI. (messages are set to be deleted when read).
    We have tried all kind of settings in the adapter but without any results. The adapter works fine with very small messages.
    Does anyone recognize this problem? 
    PS. please do not post links to sap help or the mail adapter FAQ. Useful answers will be rewarded.
    Thanks,
    Christiaan Schaake

    Hi Christiaan !
    I understand your problem. Could you set your IMAP account to avoid multiple simultaneous sessions?? maybe if there is only one session allowed per user or per time, then parallel XI threads will not be able to start downloading the messages.
    If you cannot use a longer poll interval, then you could develop an adapter module for the Mail sender adapter that could be used to verify if the current mail is just being downloaded by other thread. This adapter module could check the unique mail data (date/time + subject + etc.) against a local table.
    Regards,
    Matias.
    PD: please award points if helpful.
    Message was edited by:
            Matias Denker

  • Sender Mail Adapter Configuration error

    Hi,
    I am working on scenario mail adapter to CRM system. And when I tried to configure the sender email adapter I have got the error following error, Can any one help me to resolve this issues
    error occured: <b>exception caught during processing mail message; java.net.ConnectException: Connection refused</b>
    the details I have provided are as follows
    Transport protocol is POP3
    URL - POP://mailservername/Inbox/folder
    And I have tried with the IMAP4 also
    URL - IMAP://mailservername/Inbox/folder
    And we have cross checked that the XI server is able to ping that particular mail server.
    Regards,
    Venkat.

    Hi Venkateswara,
    I would suggest that you go through these to know how to configure your sender mail adapter,
    <a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step mail adapter step by step</a>
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure adapter Scenario</a>
    Also, to know the various parameters of a sender mail adapter, just go through this link,
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm">Configuring sender mail adapter</a>
    Check your mail adapter configuration against these details. Also, check if the mail server you are trying to access is running.
    Also go thru this pdf to make yourself more comfortable with mail adapters.
    https://websmp205.sap-ag.de/~sapidb/011000358700004556712005E/HowTo_Mail_Adapter2.pdf
    Regards,
    abhy

  • Sender mail adapter error

    hi all,
    I am working on mail-mail scenario where in when i monitor my sender CC it is displaying following error:
    "exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Protocol Error: "Invalid string supplied for user name".
    Please help me out in tracing the error as i am not able to trace it.
    Sender CC configurations are as follows
    >> Transport protocol - POP3.
    >> Message Protocol - XIALL
    >>URL - pop://pop.gmail.com
    >>User - [email protected]
    >>password - xxxxxx
    Thanks and Regards,
    Amit

    hi ramesh,
    I have changed user to amit.tsec and stopped and started the channel again and the job got scheduled and after the scheduling time it  shows following error :
    exception caught during processing mail message; java.net.ConnectException: Connection timed out: connect
    Please see if u have any idea on this error and can u give me the demo scenario on this sender mail adapter right from scratch i.e Data type.
    Thanks and Regards,
    Amit.

  • Sending mail adapter from Exchange server

    Hi ,
       I need to configure sender mail adapter which needs to forward the mails comes to the Microsoft Exchange server to XI and then to other application..
    MAIL->XI->SAP System..
      We  are using Microsoft Exchange server to send/receive mails..But we need POP3 url to receive mails ..is it possible to receive mails from the Microsoft Exchange server..
        Can anybody help me to find out the solution..

    Anandan,
    Yes it possiable to send mails from MailServer.
    Configuring the Sender Mail Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm
    Mail Adapter scenarios – SAP Exchange Infrastructure
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Mail Adapter (XI) - how to implement dynamic mail address
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Also refer these links:
    http://www.microsoft.com/exchange/evaluation/compare/ClientCompare.mspx
    http://www.microsoft.com/exchange/evaluation/whatis.mspx
    http://www.trincoll.edu/depts/cc/documentation/email/IMAP_vs_POP/default.htm
    http://www.imap.org/papers/imap.vs.pop.brief.html
    Also please go through these notes:
    804102
    xi 3.0 mail adapter with pop3 user authentication problem
    810238
    XI 3.0 Mail Adapter for POP3 may not report some errors
    Just an additional info "sender mail adapter is to convert e-mails to XI messages"
    Message was edited by:
            Sreeram Reddy

Maybe you are looking for

  • A blue screen appears and gets restarted each time when using the iphone ...wat shd i do to solve this ??

    i bought a new iphone 4s 64 gb from a nearby store in ma hometown ...my iPhone flashed a blue screen then rebooted more than  twice in the same day, I then updated to 6.13 (lastest IOS version )...still the problem continues..... wat should i do to s

  • E-mail disappeared from Apple Mail in Mavericks

    Hello, I think I experienced a bug yesterday in Apple Mail (I am running Mac OS X 10.9): While organizing my e-mails, I made a new folder in my iCloud account in Apple Mail. Let's call it "Apple". Then I used the search function to find the e-mails (

  • Strange  javascript  in Universal theme

    Hi I use Highcharts javascript Library , in  any legacy  theme  the   library  run ok ,  but  if  I wants to use the library in the new theme  I get   the next message  : Uncaught TypeError: Cannot read property 'addEvent' of undefined Uncaught Refer

  • Description of 0TCTBWOBJCT (Query Runtime Object in Technical Content)

    Hello, who can explain to me the meaning of $-objects in the masterdata of the characteristic 0TCTBWOBJCT? The object type is ELEM. So what special kind of queries are these? Examples: $!1<infoprovider>, $<infoprovider>, $1|<infoprovider> $VIRTUAL-00

  • Is it possible to pull Encryption Reports from logs?

    What I'm looking to accomplish is a way to pull a count of how many emails a certain domain sends out that get encrypted per a DLP Policy.  I also am interested in a way of getting a count of how many emails get encrypted per a Content Filter that qu