Receiver email encoding problem using mail package

Hi to all.
I'm facing a email problem. My company email server is workig fine with emails subject but customers email server is making some strange changes when i use special characters such as 'á' or spanish letter 'n with a tail on the top'.
I set the field 'Content_Type' of the email to 'text/plain; charset=ISO-8859-1' but isn't working. If i remove those special chars, the subject is OK.
I also tried to add content conversion in the receiver email adapter in module tab but with no possitive results.
I'm using SAP PI 7.0 sp14.
Any idea of what is happening?
Kind regards,
Inigo.

If you want to use non-ascii characters in email subject, then you have to apply a special notation for this, like follows:
=?utf-8?Q?Auftragsbest=C3=A4tigung?= 
This is email standard. So I recommend not use non-ascii characters in email subject.
Regards
Stefan

Similar Messages

  • Dynamic attachment name with receiver mail adapter and use mail package

    We need to send mapped XML payload as attachment (with dynamic name) to a recepient (recepient email id is part of input xml payload, but not part of the mapped XML payload).
    I could probably do this using the adapter module (as per the following link),
    http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    I would like to explore if this would be feasible using Mail package and XI payload.I already have a Java mapping that is converting the input XML to required Output format. If I am using Mail package (XI Payload), how do I go about sending this Output XML from java mapping as attachment to email id available in the input payload?

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

  • Error while using Mail Package for dynamic email address - XMLScanException

    Hi All,
        i am trying to implement File_to_Mail Scanrio. Here i am using mail package stuff to make use the dynamic mail Id's. i am following the blog /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address. i have finished all the settings as per the blog but it throwing the following error
    failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found Mail at state 1
    Please help me to resolve this error.
    Thanks in advance
    -Siva
    Edited by: Siva Ram on Jan 18, 2008 7:43 AM
    Edited by: Siva Ram on Jan 18, 2008 7:43 AM
    Edited by: Siva Ram on Jan 18, 2008 7:44 AM
    Edited by: Siva Ram on Jan 18, 2008 7:44 AM
    Edited by: Siva Ram on Jan 21, 2008 5:59 AM

    Hi Siva
    check with these threads discuss the same XMLScanException
    Mail adapter fails when using Mail Package Format
    Error in E-mail Adapter - Message protocol XIALL
    Mapping Error with mail package
    Error in Mail Adapter
    See the below links also
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Error in Mail Adapter
    Mapping Error with mail package
    Regards
    Abhishek

  • Couldn't find delivery channel when using Mail-Package

    Hi,
    I use the mail receiver adapter. If I configure the mail header data (sender, receiver, subject) in the adapter configuration everything works fine. But now I need a dynamic subject, so I thought of using "mail package". But now I get an error "Couldn't find receiver channel for message..."
    The mail package looks like this:
      <?xml version="1.0" encoding="UTF-8" ?>
      <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>[email protected]</Subject>
      <From>[email protected]</From>
      <To>[email protected]</To>
      <Content_Type>text/xml</Content_Type>
      <Content>This is my mail content</Content>
      </ns1:Mail>
    Has anyone an idea - thanks a lot - werner

    Hi Werner,
    some time ago I posted a weblogs
    which describes such a configuration
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    have a look at it
    BTW
    >>>>now I need a dynamic subject
    if you have sp14 or above then there's much
    easier method with adapter identifiers
    (then you can set the subject in message mapping )
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Error in mail adapter whilst using 'mail package' option

    Hello,
    I am using receiver mail adapter. Its working fine when I do not use 'mail package option'. But when I use mail package option, this error comes in
    Message processing failed. Cause: com.sap.aii.af.modules.conversion.xml2plain.ConversionException: No data is allowed on this structure level (2) at XML element Mail,Subject
    This is the sample of payload:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>Data Update to  Portal failed</Subject>
      <From>sender email id/From>
      <To>receiver email id/To>
      <Reply_To />
      <Content_Type>text/plain</Content_Type>
      <Content>Error: Undefined Error</Content>
      </ns1:Mail>
    Any idea what should I do to get it working. Alternatively, is it possible to use the dynamic value into the email 'TO' field.
    Thanks in adavance

    Hi All,
    I need the same info in my requirement . The Scenario is MAIL > FILE . THe Vendor sends the email with  Invoices ( An Attachment) to a mail server and the attachment has to be moved to the network folder (File )
    Here , I used  IMAP4 Protocol in MAil Sender CC
    I wanted to know is it  required to use :localejbs/ AF_Modules/PayloadSwapBean and any module configuration to petch the attachment  ?

  • File to Mail using Mail Package

    Hello,
    I have a requirement where we receive a csv file having mutiple columns, one of them being the email address.
    I need to get this email address from the file and send this file as an attachment to the same email address.(Dynamic email address)
    I have used the Mail xsd and have done graphical mapping to achieve this.
    Now,the problem is,if I use Mail package for dynamic email address,I am not able to get the source file as an attachment because the payload here is a mail structure.
    If I get source file as an attachment using PayloadSwapBean and MessageTransformBean,I cannot have dynamic email address.
    Can anyone please suggest a solution to this?
    Thanks in advance for your help.
    Regards,
    Shweta

    Hi Stefan,
    Thanks for the reply.
    But I think,I am not able to understand the solution mentioned by you.
    I can find following fields in ASMA mail adapter:
    Meaning
    Technical name
    User
    TServerLocation
    Authentication Keys
    TAuthKey
    Mail header 'from' field
    THeaderFROM
    Mail header 'to' field
    THeaderTO
    Mail header 'Cc' field
    THeaderCC
    Mail header 'Bcc' field
    THeaderBCC
    Mail header 'subject' field
    THeaderSUBJECT
    Mail header field for reference to mail which is being replied to
    THeaderIN-REPLY-TO
    Mail header 'reply to' field
    THeaderREPLY-TO
    Mail header field for mail client program
    THeaderX-MAILER
    Mail header field for delivery acknowledgement
    THeaderDISPOSITION-NOTIFICATION-TO
    Mail header field for priority
    THeaderPRIORITY
    Mail header field for message importance
    THeaderIMPORTANCE
    I couldn't find a field related to attachments.
    I can see the xml version of file in inbound message in SXI_MONITOR.
    But after mapping,I get Mail package structure.
    Could you please explain again.Sorry for this.
    Thanks.
    Regards,
    Shweta

  • Mail Adapter Use Mail Package, Mail Body and Attachment

    Hello
    Have some body a idea, how I can configure the mail adapter with use mail package, that I have in the mail a attachment with content from the messages and a mail body with also text from the message.
    Thanks for your reply.
    Regards Tom
    The different Weblog , I have check:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    https://www.sdn.sap.com/sdn/weblogs.sdn?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] [original link is broken]
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

    Hi Thomas,
    If you are configuring your Mail adapter as reciever then refer
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    your sender (say file) should have some message like this
    <i>
    <ml:Mail xmlns:ml=’http://sap.com/xi/XI/Mail/30’>
       <Subject>Important</Subject>
       <From>[email protected]</From>
       <To>[email protected]</To>
       <X_Mailer>Outlook Express </X_Mailer>
       <Content>
       This is the content.
       </Content>
    </ml:Mail></i>
    And for Sender Mail Adpater
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Hope this will be helpful
    Regards
    Suraj

  • Mail adapter fails when using Mail Package Format

    Hi.
    Using XI 3.0 stack level 9.
    When i set up the mail adapeter to Use mail package format (by ticking the "Use Mail Package") checkbox I get the following error :
    "error occured: [2005-09-14T09:42:46Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found Subject at state 1".
    The scenario is basic : file in mail out.
    File coming in has the structure :
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <ns:Subject>Sap test</ns:Subject>
      <ns:From>SAP</ns:From>
      <ns:To>[email protected]</ns:To>
      <ns:X_Mailer>Outlook</ns:X_Mailer>
      <ns:Content>Contect</ns:Content>
    </ns:Mail>
    Any help would be appreciated.

    Hi Rodney,
    try to use the following structure...
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <Subject>Sap test</Subject>
      <From>SAP</From>
      <To>[email protected]</To>
      <X_Mailer>Outlook</X_Mailer>
      <Content>Contect</Content>
    </ns:Mail>
    The namespace should only be included in the Mail tag. On our side it works fine with the mentioned structure.
    Hope it helps...
    Regards,
    Lars

  • Dynamically pass subject via mail adapter without using mail package

    Hi,
    We have requirement to pass the Dynamic variable as Mail subject
    we can't use Mail Package as we need to capture the data from Dynamic SOAP header Data from incomming channel
    Dynamic SOAP Header variable (XHeaderName1) comming from Sender SOAP channel.
    Receiver side we need to capture that XHeaderName1 in Mail Adapter channel using ASMA and Variable transport binding so that value of XHeaderName1 should overwrite Subject under General/ Mail Atribute section.
    Could you please let me know, how to handle this requirement using module configuration?
    Also suggest the correct configuration to use ASMA and Variable transport binding.
    Regards
    Venky

    Hi Venky,
    Please have a look at the links below. They should help you.
    Configuring the Sender SOAP Adapter- https://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Configuring the Receiver Mail Adapter-https://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    Adapter-Specific Message Attributes in the Message Header  -https://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/content.htm
    Regards,
    Jannus Botha

  • Using mail package in file to mail scenario

    For sending the mail in proper email format ,
    we have to check the USE MAIL PACKAGE option.
    the corresponding  TO, FROM ,SUBJECT and CONTENT
    need to be handled in mapping..
    Can anyone tell me which field in the mapping will match the req fields ????

    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <Subject>Hello</Subject>
    <From>[email protected]</From>
    <To>[email protected]</To>
    <Content>row1
    row2
    row3
    row4</Content>
    </ns:Mail>
    You can use UDF example to do this. Assume your original message payload is:
    <root>
    <text>row1</text>
    <text>row2</text>
    <text>row3</text>
    <text>row4</text>
    </root>
    Create a advanced user defined function like this:
    public void AddText(String[] a, ResultList result, Container container){
    codeString b = "";
    for (int j=0;j<a.length;j++)
    b = b + a[j] + "\n";
    result.addValue(b);[/code]
    Now you connect
    text -> addText -> Content

  • My mail only receives certain messages . received  email from apple saying  mail is full and it isn'

    my mail only receives certain messages . received  email from apple saying  mail is full and it isn'.
    a lot of email that others send me  don't even get to may mailbox.

    Your icloud storage must be full, from emails, backups, and other data. 
    Go to
    Settings>General>Usage.  This tells how much storage is used on both iCloud and on the device.

  • I am not receiving email on my iCloud mail account what should I do?

    II am not receiving email on my iCloud mail account what should I do?

    iTunes gift cards are only valid on accounts based in the country in which the card was issued - so if you have a US account then you can only use US gift cards. Do you know anybody in the country where you bought it from that you could sell or give it to ? Or you could try selling it on a site such as eBay.

  • I cant receive emails through the mac mail app.

    I cant receive emails throught the mac mail app. But i can send them. How do i reset the app and receive mail again. It receive them before but all of the sudden i quit getting mail

    I had the exact same problem!
    I just ran a software update today and its all good!
    Updated now to -
    Mac OS X Lion 10.7.5 (11G63)

  • Just arrived in Mexico--hooked up to wifi--receive emails fine on Mac Mail, but can't seem to send an email. Any suggestions?

    Just arrived in Mexico--hooked up to wifi--receive emails fine on Mac Mail, but can't seem to send an email. Any suggestions?

    The outgoing mail server is rejecting mail from your network address. Typically that happens when your mail service provider is also your ISP, and you connect to it from another network. The SMTP server will allow connections without a password from anywhere, but it will only relay mail from within the ISP's network. It could also be that your account on the server has expired or been suspended.
    If you need to send mail from outside your ISP's network, use an independent mail service provider. I don't have a specific recommendation.

  • Gmail cannot receive email sent from SBO-Mailer

    Dear All,
    I can receive emails from SBO-Mailer to my company email. My colleague can also receive email sent to her company email. However, I can not receive email if it is sent to my gmail or hotmail or yahoo. Did I miss something?

    Hi,
    You may try to use this sap note solution if probably you are interested to use gmail smtp :
    SBO Mailer doesn't work in Login Authentication mode
    Symptom
    You test connection in SBO mailer with Login Authentication mode unsuccessfully and the error message below is shown:
    Login authentication failed. or
    Login authentication not supported by SMTP server.
    Also, you fail to send emls in SAP Business One with Login Authentication mode.
    Other terms
    SMTP
    Reason and Prerequisites
    Consulting
    Solution
    This is usually because of wrong settings in SBO mailer. Gmail for example, you should set as the following:
    SMTP Server: smtp.gmil.com
    SMTP Port: 587
    Username: ***@gmil.com
    Password: ****
    Encoding: English (United States)
    SMTP Client: Microsoft .NET
    Authentication: Basic Authentication
    Use TLS Encryption: Yes
    If you choose Microsoft .NET as SMTP Client, the "test connection" button in SBO mailer is invalid but it can still send emails in SAP Business One.
    JimM

Maybe you are looking for

  • Performance reduced after EFI update on Macbook Pro Retina

    after i upgraded EFI on my retina macbook pro the proformence reduced to unusable. under heavy load( under mac os or windows7) the cpu clock drops and as well as cpu clock. this is the screen shot of gpu clock monitoring from windows u can see the gp

  • Getting error while invoking BAM Web service from SOAP UI

    Dear All, I am trying to create a data object in BAM using BAM DataObjectDefinition Operations Web service using below payload <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bam="http://xmlns.oracle.com/bam"> <soape

  • Get file name of one folder

    Hi I want to know all file names of one folder which is on the presentation server. I dont want to use FM: TMP_GUI_DIRECTORY_LIST_FILES. because it wont work in background. Regards, Vishwa.

  • Header not repeating after 2nd page

    Hi, I want my header to be repeated in all pages of my form. For this In item subform.I have a added a subformset and its properrties Acessibility subform role -header row . Pagintaion: tick for include header row in intial page tick for include head

  • Accidentally boosted DPI while cropping an image - affect on quality?

    Hi, While cropping some of my jpeg images (orginally 300 dpi) I didn't pay attention to some of the settings and the dpi has now been boosted to 800. Does this have any affect at all on the image quality? I had made other changes too so don't want to