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.

Similar Messages

  • PI: Sender Mail adapter: archive incoming email

    Hi!
    Our task is to archive the incoming email unchanged - in the file adapter I have the possibility to store the processed file on a different location. Do I have this possibility also with the mail adapter?
    IMplementing a Module bean is not possible in our case as we use sMIMe security and the framwork does the signature checking before calling the adapter modules and also removes the certificate attachment from the incoming data.
    Any help would be fine!
    I have heard of "Security archiving" - can be found in the RWB when selecting the adapter engine - does anybody hav experience with this?
    kr Martin

    Hi Martin,
    On the STATUS tab itself, you will a lot of other options, like - Repeat Ping, Repeat Self-Test, Communication Channel Monitoring and so on. At the same place, you will find option for Security Archiving. Once you click on that, a new window will pop-up. There you can configure your archiving options.
    Have a look at this - http://help.sap.com/saphelp_nwpi71/helpdata/en/8c/2ec59131d7f84ea514a67d628925a9/frameset.htm
    Hope this helps.
    Regards,
    Neetesh

  • 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

  • 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 Transport Protocol as SMTP

    Hi,
    i am Working with Mail to File Scenario..
    Done with Whole Process..
    But when i m Sending a mail from SBWP... the mail was sent Successfully sent to the receptint...
    But i m not able to see my message in SXMB_MONI ... and when i check in RWB i got the following error at Sender Communication Channel..
    Can Anyone help me to fix this Error... what might be the problem ?
    1/5/11 1:20:29 PM   mail client job stopped completly
    1/5/11 1:16:27 PM   exception caught during processing mail message; java.net.ConnectException: Connection refused: connect
    1/5/11 1:11:27 PM   exception caught during processing mail message; java.net.ConnectException: Connection refused: connect
    1/5/11 1:06:27 PM   exception caught during processing mail message; java.net.ConnectException: Connection refused: connect
      1/5/11 1:06:26 PM   mail client job scheduled

    Hi Deepthi,
    Try to restart the j2ee engine , Tcode=SMICM by SAP GUI.
    hope it works.
    Also try to chk themailserver security settings , maybe XI is not able to reach it.
    Chk whether theauthentication details for accessing mail box are correct ?
    Connection refused this error generally  occurs when XI is not able to connect .
    maybe some ports are not opened on the firewall
    check if the mail server you are trying to access is running.
    just chk the below link for Configuring the Sender Mail Adapter :-
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Regards,
    Rohit

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

  • B2B Inbound Error - sender mail adapter - SMTP

    Boa tarde
    Estou tendo um erro quando tento ler uma caixa de e-mail via scenario B2B inbound utilizando sender adapter mail (SMTP)
    estou passando as seguintes informações no adapter sender :
    Transport Protocol: POP3
    Message Protocol: XIPAYLOAD
    URL :smtp://sepcsawi003.xxxx.xxx.
    Authentication Method : Plain
    USER : monit.nfe
    SENHA : XXXXX
    Poll interval(Min) : 1
    Keep Attachments : X
    namespace : http://sap.com/xi/NFE/005a
    interface name : NFB2B_procNFe_OB
    Segue o log extraido do comuncation Channel Monitoring :
    In the Last 20 Minutes Server 0 70_34165 not initialized
    Na sxmb_moni não aparece nada.
    Essa configuração está correta para uso de SMTP com sender mail adapter?
    Entrei na máquina do PI e executei o comando telnet sepcsawi003 25 para acessar o servidor de email.
    Recebi o retorno:
    Connecting To sepcsawi003...Could not open connection to the host, on port 25: Connect failed
    Meu administrador me disse que as máquina PI e Email estão se conectando.
    Vocês podem me ajudar?
    Abs,
    Sérgio Salomã

    Boa Tarde
    Lembrando
                     se for Pop3 a vc tem que ter acesso a porta 110  e IMAP4 143 se não me engano por padrão
    de uma olhada nesse link
    http://wiki.sdn.sap.com/wiki/display/XI/StepbyStepMailToFileScenario
    não esqueça  no adapter sender mail
    na aba module
    Processing Sequence
    1 localejbs/AF_Modules/PayloadSwapBean | Local Enterprise Bean | 1
    2 localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean | Local Enterprise Bean | mail
    Module Configuration
    1 | swap.keyName | Content-Disposition
    1 | swap.keyName | Content-Description
    1 | swap.keyValue | attachment; filename="MailAttachment-1.xml"
    1 | swap.keyValue | MailAttachment-1
    Att
    Ronaldo de Moraes

  • Sender Mail adapter encounters MalformedInputException

    I have a sender mail adapter that processes the attached .csv file.  All is working fine.  I use FCC in module to convert the attachment and pass to an IDOC adapter for processing in SAP system.
    My problem is sometimes the sender mail CC fails with ...........
    exception caught during processing mail message[1]; com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
    It only fails with some files.  At the moment when we test we FORWARD the email to our email account.  If I detach the failed email attachment and attach it to a NEW email it will then work.
    So why does it not work when forwarding emails?  But it works when I attach the same file to a new email and send?
    Other threads for this error seem to point to encoding.  But how do I know which to use.  I currently use the following in my module config:
    Transfer.ContentType     application/octet-stream;charset="ISO-8859-1"

    I have this in my configuration:
    localejbs/AF_Modules/PayloadSwapBean   on local
    TRANSFORM
    localejbs/AF_Modules/MessageTransformBean   on local
    txtxml
    TRANSFORM   swap.keyName   payload-name
    TRANSFORM   swap.keyValue   MailAttachment-1
    txtxml   Transfer.ContentType   application/octet-stream;charset="ISO-8859-1"
    txtxml   Transform.Class   com.sap.aii.messaging.adapter.Conversion
    txtxml   Transform.ContentDescription   MailAttachment-1
    txtxml   Transform.ContentDisposition   attachment;filename="MailAttachment-1.bin"
    txtxml   xml.conversionType   SimplePlain2XML
    txtxml   xml.documentName   MT_BCD_INVOICES
    txtxml   xml.documentNamespace   urn://federalmogul.com/BCDTRAVEL/FINGLOBCD001/00
    txtxml   xml.fieldNames   COST_CENTRE,EMPLOYEE_ID,PRODUCT_GROUP,COMP_CODE,BCD_ACCOUNT,INVOICE_DATE,TRAVELER_NAME,TRAVELER_FIRST_NAME,INVOICE_NO,AMOUNT_EXCL_VAT,CURRENCY1,AMOUNT_VAT,CURRENCY2,AMOUNT_DOC_CURRENCY,CURRENCY3
    txtxml   xml.fieldSeparator   ;
    txtxml   xml.lastFieldsOptional   YES
    txtxml   xml.processFieldNames  fromConfiguration
    txtxml   xml.structureTitle   RECORDSET

  • Sender Mail Adapter - S/MIME - How to use it?

    Hi guys,
    I am trying to figure out how to use the S/MIME security parameter of the Sender Mail Adapter in PI 7.1.
    Could anyone point me to some useful documentation/examples/blogs ?
    Or perhaps explain what steps are involved when configuring this parameter?
    We are pulling emails from an Microsoft Exchange server.
    Many thanks,
    Aldo

    First of all one sender mail adapter has to be tight with a specific sender email address.
    The email has to be decrypted as whole, you cannot decrypt parts of it.
    Then you store certificates to secure store in J2EE server and point to it in send agreement, this should be equal to HTTPS setup
    Check security guide:
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/f7/c2953fc405330ee10000000a114084/frameset.htm

  • 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

  • Sender  Mail Adapter - java.lang.NullPointerException in CC monitoring

    hi,
    I configured my Sender Mail Adapter correctly.
    I have the correct POP URL, authentication. I'm not using PayloadSwapBean right now.
    I can't get rid of the exception inside my Channel monitoring.
    exception caught during processing mail message; java.lang.NullPointerException
    does anyone know why?
    I've been told the POP account has emails already.
    I will try to create an outlook account for this POP e-mail account in the mean time to see the e-mails.
    Thank you

    thanks aaron.
    I don't see the folder ./SYS/../j2ee/...
    will it be under another folder?  I don't see a trace log folder either.
    I think the problem might be in the Module tab.
    I tried.
    AF_Modules/PayloadSwapBean
    localejbs/AF_Modules/PayloadSwapBean
    /localejbs/AF_Modules/PayloadSwapBean
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    /localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    they all produce the same error. I wonder if these Beans actually exist.
    I think we might have to reinstall this Mail Adapter altogether.
    Or maybe it's really the connection to the Mail Server. But would it display this kind of message.
    This is what I'm looking at.
    Also, i had to use this URL
    pop://server:995/
    (995 is using SSL and it is the default port).  When I use this, I see the Java Null Pointer Exception a lot less frequently. Weird.

  • 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

Maybe you are looking for

  • Minimum DB2 resources needed for a WL ConnectionPool to DB2 on UNIX?

    I posted this same message to the DB2 group as well.... I want to create a ConnectionPool to a DB2 database using the Weblogic App Server v6.1 running on UNIX/Solaris 8. The DB2 database that I'd like to connect to resides on a separate server(on Win

  • Problems installing Photoshop CS6 on New Laptop

    My old laptop had a hard drive crash and is dead.  I bought a new laptop yesterday (windows 8.1) and downloaded cs6, which I had installed on the old laptop.  When I enter my serial number, a message says that no version of photoshop was found on my

  • Help I've deleted my "Recently Added" Playlist!

    Is there a way to get this back? I've looked everywhere on iTunes and can't seem to figure out how I can get this playlist back. Please help me!

  • App world update error

    I haven't been able to use my appworld in months - asks to upgrade, do it says complete followed by error, restarts and asks to upgrage app world again , also browser issues on some sites will click on link and sends me back to homescreen completely

  • Behaviour sRGB embedded pictures in  Lightroom versus IE

    hello, I have a calibrated monitor (6500K and a gamma of 2,2). I'm working with Windows Vista. When I view a picture with embedded sRGB profile in InternetExplorer (uses no colormanagement) and Adobe Lightroom (uses colormanagement), there is a very