Problem of encoding for mail sender adapter

Hello, everyone.
I have faced the problem of mail sender adapter.
When someone send message with any content encoding (even UTF-8) and 8bit content type encoding the XI mail adapter corrupt special and foreign symbols. I checked the message for correct structure and encoding with tpcgw utility and it was fine. For example (this is what I can see in tcpgw)
==== Response ====
+OK
+OK Password required for user itra_xi
+OK XXXXX maildrop has 1 messages (2048 octets)
+OK 1 2048
+OK
+OK 1459 octets
Return-path:
Received: from (port=20091 helo=XXXX)
     by mx76.mail.ru with psmtp
     id 1O7UoW-0003I4-00
     for XXXXXX; Thu, 29 Apr 2010 18:34:04 +0400
Message-ID:
Subject: Message 29 4
Date: Thu, 29 Apr 2010 17:33:43 +0300
MIME-Version: 1.0
Content-Type: multipart/alternative;
     boundary="----=_NextPart_000_0018_01CAE7C2.1D0BBA60"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-Spam: Not detected
X-Mras: Ok
This is a multi-part message in MIME format.
=_NextPart_000_0018_01CAE7C2.1D0BBA60
Content-Type: text/plain;
     charset="utf-8"
Content-Transfer-Encoding: 8bit
Test
Тест
And after processing by XI mail adapter  I have this payload (XIPAYLOAD mode using mail package)
Test
Тест
The same situation with using mail package in xml document.
Any suggestions how this can be corrected?

I switched UTF-8 encoding during displaying of http content in tcpgw utility and all other mail clients detect it as UTF-8 and work fine. Also this problem occurs with different mail clients that are senders of the message. So it seems adapter takes each byte of cyrillic symbol (each from two) and represents it as individual symbol.
Correct me if I'm wrong. Maybe there is some configuration somewhere allowing to correct or maybe it's possible to write module to correct.. but it's quite complicated to split correct and incorrect symbols.

Similar Messages

  • How to load different certificates in a keystore for mail sender adapter

    Hi,
    we are getting mails from different partners. Some have digital signatures others not.
    Now we wanna verify the mails with digital signatures.
    My problem is, that we have to enter the "keystore" and the "keystore entry" in the sender agreement - but the mail partners have different CAs (e.g. Verisign,....).
    Is it possible to collect all certificates of our partners in one keystore?
    How can we handle the problem?
    Thx a lot!
    regards
    Wolfgang

    Hi,
    we are getting mails from different partners. Some have digital signatures others not.
    Now we wanna verify the mails with digital signatures.
    My problem is, that we have to enter the "keystore" and the "keystore entry" in the sender agreement - but the mail partners have different CAs (e.g. Verisign,....).
    Is it possible to collect all certificates of our partners in one keystore?
    How can we handle the problem?
    Thx a lot!
    regards
    Wolfgang

  • How to change Content-Transfer-Encoding for mail sending

    Hello Experts,
    I need to send some documents through mail which i am doing with the help of cl_output_service=>document_output method. Mail is been send succesfully.
    But in the payload content which got from Exchange server:
       X-Mailer: SAP Web Application Server 7.10
       Content-Type: text/plain;
        charset="us-ascii"
       Content-Transfer-Encoding: quoted-printable
    Can any one help me, how i can change Content-Transfer-Encoding field to some other format which is not  'quoted-printable'.
    Thanks & Regards,
    Dheeraj

    Do you documents contain an XML Declaration like this at the top?
    <?xml version="1.0" encoding="ISO-8859-2"?>
    If not, then they need to. The XML 1.0 specification says that if an XML declaration is not present, the processor must default to assume its in UTF-8 encoding.

  • How can i read only .txt file and skip other files in Mail Sender Adapter ?

    Hi Friends ,
                       <b> I am working on scenario like , I have to read an mail attachement and send the data to R3.</b>
                        It is working fine if only the .txt file comes.
                      <b>Some times ,html files also coming along with that .txt files. That time my Mail adapter fails to read the .txt file.</b>
                       I am using PayLoadSwap Bean and MessageTransformBean to swap and send the attachment as payload .
                         <b>Michal as told to write the Adapter module to skip the files .But i am not ware of the adapter moduel . If any blogs is there for this kind of scenarios please give me the link.</b>
                           Otherwise , please tell me how to write adapter module for Mail  Sender Adapter?
                      How to download the following
                        newest patch of XI ADAPTER FRAMEWORK CORE 3.0
    from SAP Service Marketplace. Open the file with WinZip and extract the following
    SDAs:
    &#61589;&#61472;aii_af_lib.sda, aii_af_svc.sda
    &#61589;&#61472;aii_af_cpa_svc.sda
                        I have searche in servive market place .But i couldn't find that . Can you please provide me the link to download the above .
                      If any other suggestions other than this please let me know.
    Regards.,
    V.Rangarajan

    =P
    Dude, netiquette. Messages like "i need this now! Do it!" are really offensive and no one here is being payed to answer anyone's questions. We're here because we like to contribute to the community.
    Anyway, in your case, just perform some search on how you could filter the files that are attached to the message. The sample module is just an example, you'll have to implement your own. Tips would be to query the filename of the attachments (or maybe content type) and for the ones which are not text, remove them.
    Regards,
    Henrique.

  • Content-Transfer-Encoding for mail from Portal

    Hi,
    I work on Portal 7.0 SP 12.
    Do You know how to change encoding (Content-Transfer-Encoding) for mails send from portal by users (ex. from Collaboration Launch Pad) ?
    Regards,
    Jarek

    Thank you

  • Mail sender adapter POP server not configured for URL access

    Hi Experts,
    I have a Mail --> PI --> R/3 scenario and I am configuring the Mail sender adapter for POP3. The issue is that the POP server is not configured to be accessed via a URL and hence the URL pop://hostname/ is causing the following error at runtime:
    _1. When I use pop://Fully qualified host name/
    _Error: exception caught during processing mail message; java.net.UnknownHostException
    _2. When I use pop://IP address of host/
    _Error: exception caught during processing mail message; java.net.SocketException: Connection timed out:could be due to invalid address
    I am able to ping the POP3 server from the PI server using both the FQDN and IP address.
    Can someone please help.
    Thanks,
    Shobhit
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM

    Hi Shobhit
    Check with 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
    also check mailserver security settings ...
    Connection refused occures when XI cannot connect
    in most cases so try checking it again , maybe some ports are not opend on the firewall
    Thanks
    Edited by: Abhishek Agrahari on Jul 14, 2009 11:44 AM

  • Mail Sender Adapter for Exchange 2007 IMAPS account

    Hi everybody,
    I have the following todo:
    I configured a Mail Sender Adapter that is supposed to fetch mails from an IMAP account.
    The mails contain text files with data to be processed by XI 3.0 SP 22.
    The mail server is Exchange 2007 and requires IMAPS. IMAP is not enough. I read the notes
    - 893590 - XI 3.0 Mail sender adapter with IMAP or POP with SSL problem
    - 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
    and configured the sender apapter as follows:
    URL:                     imaps://<ip address>/owa
    Authentication method:     Plain
    User:                    <domain>\<user>
    Password:                       topsecret
    Poll Interval: 5
    The first challenge is to setup the adapter with SSL. To do so, I added the Exchange server's
    root SSL certificate in the default truststore service-ssl via the KeyStorage service.
    This is necessary, as far as I know, to successfully validate the Exchange server's trusted
    certifacate which is being transfered to XI during SSL handshake.
    Since the communication channel in RWB is in status error with following message:
    mail client job stopped completly
    exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO owa doesn't exist.
    mail client job scheduled,
    I do not know how to setup SSL for IMAPS. I successfully tested a PING to the Exchange server.
    Are there already experiences with Exchange 2007?
    What I have to do to fetch mails from an Exchange 2007 IMAPS folder/account with a Mail Sender Adapter?
    Kind regards,
    Andreas

    Hi,
    It should be imap and not imaps.
    You can try imap://xxx.xxx.de:993/Inbox
    Make sure that port 993 is correct. If you have doubt, then you may try 143 which is default port instead of 993 in the above url.
    regards,
    ganesh.

  • Xi mail sender adapter for outlook express configuration

    hi,
    can somone please tell me how to configure xi mail sender adapter for reading from inbox of outlook express?
    i keep getting errors in communication channel monitor:
    "exception caught during processing mail message; java.io.IOException: unexpected user response; read -ERR Command is not valid in this state."
    Thanks
    Tomer

    Hi,
    use below link,finish the configuration of sender mail adapter,many documents available on the same in sdn,search your self
    http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
    Cheers,
    Raj

  • Mail Sender Adapter - Attachment Handling

    Hello,
    I 'm using XI 3.0 SP 14.
    I have problems with my Mail-Sender-Adapter.
    The mails, I fetch, have an xml-attachment which
    represents an IDOC-structure (ORDERS.ORDERS05).
    I want to sent this attachment as payload to an SAP-System.
    The problem is now, that I have 2 Payloads (SXMB_MONI).
    One for the normal email-body and one for my original
    xml-attachment. See below:
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailMessage</SAP:Name>
      <SAP:Description>mail message</SAP:Description>
      <SAP:Type>Application</SAP:Type>
      </SAP:Payload>
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailAttachment-1</SAP:Name>
      <SAP:Description>mail attachment</SAP:Description>
      <SAP:Type>ApplicationAttachment</SAP:Type>
      </SAP:Payload>
      </SAP:Manifest>
      </SOAP:Body>
    The XI Runtime Workbench (SXMB_MONI) takes (in my case)
    the wrong one (email-body-attachment) and gives me
    an parsing error. (Error occurs at my IDOC-Receiver-Adapter)
    Now my question:
    Can I remove the email-body-attachment, so that
    the further processing works with my xml-attachment?
    Or how can I resolve my problem.
    best regards
    Marcel Reichert

    Hi Marcel,
    use the PayloadSwapBean module to get the attachment as main payload.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    As parameters use:
    swap.keyName = payload-name
    swap.keyValue = MailAttachment-1
    Regards
    Stefan

  • Mail sender adapter: date

    Hi all
    I need to fetch the mail date during the processing with mail sender adapter. I can't find a relevant field in the Adapter-Specific Message Attributes (SHeaderFROM, SHeaderTO etc.).
    Do you know how to fetch the mail date during the processing of a mail via mail sender adapter?
    Thx
    Tobias

    Thanks for the response.
    The problem is that the mail is perhaps not processed when it is created. For example: the mail is created on 01th of april and sent to the mailbox. But the PI mail sender adapter is fetching the mail on 02nd of april. Due to the reason I can't use current date - I need the original sending date of the mail.
    Thx

  • Mail Sender Adapter - read from public folder.

    Hello Experts.
    I have a scenario, where I need to read an incoming mail from a public folder, and after mapping the attachment (which is a csv) I need to put the result as a file in a shared folder.
    right now the problem is, I am not sure how to access the public folder.
    should I use one of the exchange users, and try to access the public folder?
    what should I be writing in the URL parameter in the mail sender adapter ? (imap://server/???/public folder ?)
    Also - in case I will want to switch the location of the mail to a private foler inside of the user mailbox - what is the URL parameter in that case?
    Anyone ever did something like this and can help?
    Thanks,
    Imanuel Rahamim.

    Hi Imanuel,
    do u mean u want to pick the mail which contains an attachement from a specified folder instead of inbox?
    u can configure the URL like imap://host:port/path/PublicFolder.
    after PI received the mail. we can use PayloadSwapBean to get the attachement payload and do following message mapping.
    ur question: Also - in case I will want to switch the location of the mail to a private foler inside of the user mailbox - what is the URL parameter in that case?
    do u mean u want to pick the mail from a specified mail account? if like this, create an user for the interface only. then configure the UserName/Password in the channel.
    Regards,
    Kevin Song

  • IMAP-Mail sender adapter handling with read messages in mailbox

    Hi,
    (PI 7.0)
    we have a "funny" situation:
    We are using imap-mail-sender adapter polling a mailbox.
    Sometimes there are read messages in mailbox so the adapter cannot read these messages.
    When we sort all read messages and we mark e.g. the second message in list as not read, the adapter polls fetch the first (already read) message and afterwards the not-read message and afterwards no other message is read.
    I think this behaviour is wrong because pi should not handle an already read meassage.
    Does anybody know this problem?
    Or is it a problem of the mail-server (Exchange 2003)?
    Thanx and regards
    Wolfgang

    Hi,
    thanx for your answer.
    The default behaviour of imap is "only fetching unread message" (s. FAQ of mail adapter)...
    The mail sender channel with IMAP4 fetches only the unread messages from the specified mail box in the order they are stored. Therefore, please make sure that you have some unread messages in the top of the list (if ordered by most recent on top). After a polling cycle, you can look at the status of this channel at the adapter's monitor. This should show any error if the messages are not processed correctly. Once the messages are read but not processed correctly, they remain in the mail box but are not read in the subsequent polling cycle. You must correct the problem and delete these messages using your mail client program or reset them as unread so that they can be resend.
    In our example the adapter fetchs read messages too (till the first unread one)  - and this is wrong (i think so!?).
    But I dont know if its a MS-Exchange problem.
    Regards
    Wolfgang
    Edited by: Wolfgang Hummel on Oct 7, 2009 12:20 PM
    Edited by: Wolfgang Hummel on Oct 7, 2009 12:21 PM

  • Mail Sender Adapter with multiple sMIME attachments

    Hi!
    I 'm using XI 3.0 SP 15.
    I have problems with my Mail-Sender-Adapter.
    The mails, I fetch, contain a certificate and multiple xml-attachments. The xml's represent an IDOC-structure (INVOIC.INVOIC02).
    The task is to first check the certificate, and then to send each of the XML attachments separately to an SAP-System.
    1) We have twelve partner which use this e-Invoicing interface. How do I administer the certificates and do I have to create for each partner a "Sendervereinbarung"?
    2)
    The second problem is, that I have multiple payloads which have to be processed separately. How can this be done?
    kind regards and thanks a lot for your help
    MArtin

    As we have multiple xml-attachments, I guess we have a major problem anyway.
    I guess Certificate verification in the sebder agreement is done after the Module Processing of the email-adapter isn't it?
    Due to the multiple attachments we have to write a customer specific Module for the email-adapter anyway.
    I guess the only way is that the module validates the certificate against the J2EE KeyStore and then extracts the various xml attachments to a file share.
    A File sender adapter then polls the file share and the sender aggreement / receiver agreement /mapping ... process starts.
    The only question is if the file adapter works also without a sender agreement, so that the xml's are stored on the file share
    Do you have an idea, if this works? or do you see any alternatives?
    thanks alot for your help!!
    MArtin

  • Transport protocol SMTP in Mail Sender Adapter

    Hi Experts,
    How can I use SMTP as the Transport Protocol instead of POP3 / IMAP4 protocols in the Mail Sender Adapter.
    I am referring Note 856599 - FAQ Mail Adapter.pdf but not getting a l
    " 9. Other Questions
    Q: How can I configure my sender channel for my SMTP server?
    A: You can specify your SMTP server as URL. For example, if your
    server is called host, your URL should look like
    smtp://host:port/ "
    Regards,
    Shobhit

    Hi
    How can I use SMTP as the Transport Protocol instead of POP3 / IMAP4 protocols in the Mail Sender Adapter.
    In case of sending mail from XI you can use SMTP. To read mails you need POP3
    IMAP works for both.
    Yes in XI mail adapter receiver type. URL field you can use URL like
    SMTP://Mailhost.com
    Refer this
    The specified item was not found.
    Thanks
    Gaurav

  • Help requierd on mail sender adapter

    i m workin on a scenario to send email from a mail server inbox to XI.i need to configure mail sender adapter....need step by step help on that.
    regards,
    latika.

    hi latika,
    the Message Structure to be defined depends on the message protocol that you are trying to use.
    I would recommend using XIPAYLOAD. From the help link,
    <b>XIPAYLOAD</b>
    In this mode, the content of the e-mail is put in the payload of the XI message. If you do not set the Use Mail Package indicator, the information about the sender (From), receiver (To), and subject of the e-mail is lost.
    If you have selected XIPAYLOAD as the message protocol, you must make the following additional specifications under Mail Attributes:
    If you want to put the entire e-mail message including the header information (From, To, Subject) in the payload, set the Use Mail Package indicator. See the example below. The header information is included in an XML mail package format.
    <i>
    Source Structure</i>
    <i><?xml version="1.0" encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <Subject>Subject</Subject>
      <From>[email protected]</From>
      <To>[email protected]</To>
      <Reply_To />
      <Content_Type>text/plain</Content_Type>
      <Content>
      This is the content.
      </Content>
    </ns:Mail></i>
    Regards,
    Bhavesh

Maybe you are looking for

  • Dreamweaver MX 2004 Hangs

    Hello! My trusty copy of Dreamweaver MX 2004 suddenly hangs when I try to run it. Have recently installed Norton 360 in this Win XP pro system. Other than that I don't know what could be the problem. Is this a case of finding and deleting pref files?

  • Time zone Inbox (user vs. server)

    We created the users and defined your specific time zone (su01), when the user login to the portal and created documents the time displayed its correct (zone depending), nevertheless when the same user access to the portal inbox, the filter is by ser

  • Issue with internal order postings

    Hi Experts, I have created one service order in CRM and created a debit memo. In this i have two issue, please help me if know the solution. 1. Once i created the Debit memo, it was replicated in to ECC and line item wise one internal order should be

  • After a PRAM reset my MBP 1,1 display is split into 4 parts each displaying the same image. What is causing this and how can I fix it?

    After resetting the PRAM/NVRAM (control, option, P, R) on my Macbook Pro 1,1 (2007) running 10.6.8 The screen is now split into 4 parts, each displaying the same thing. The screen immediately appears this way at the first grey screen, however if I do

  • Costed_flaG in MMT table is 'E'

    Hi experts, Current we have a record in MTL_MATERIAL_TRANSACTIONS table which has 'E' in COSTED_FLAG. In the ERROR_CODE and ERROR_EXPLANATION column show "cmlwmx-2:". I would like to know why did issue happen and how to solve this issue? Do you have