PayloadZIPBean with Mail Package... is it possible?

Hi,
In proxy to file scenario, I send mails from PI with data received from proxy as attachment. I also need to zip the attachment.
I will be getting the email address dynamically, hence I should use Mail Package with 'Keep Attachments' option. Now the problem is if I use mail package since the <content> tag data is taken as mail attachment, can I use PayloadZipBean in receiver mail adapter to zip the attachemnt?
I tried using the follwoing adapter module in receiver mail mail adapter but ended with an error.
Module Name: AF_Modules/PayloadZipBean                             Module Key: zip
Module Config:
zip             zip.filenameKey                   payloadName
zip             zip.mode                              zipOne
Error:
org.xml.sax.SAXParseException: Content is not allowed in prolog
Regards,
Sreedhar

Hi Sreedhar,
    Have you looked at this help link?
http://help.sap.com/saphelp_nwpi711/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm
Also see :
Zip Payload using PayloadZipBean Module Processor
Regards,
Ravi Kanth Talagana
Edited by: Ravi Kanth Talagana on Oct 22, 2009 5:13 PM

Similar Messages

  • I'm not able to send emails with mail.ru. Receiving and reading is not a problem. When I create a email with mail.ru its not possible to send it although its stored in my mail.ru account as "still to be send". What can it be??

    I'm not able to send emails with mail.ru. Receiving is not a problem. Creating a mail is also not a problem and the mail will be stored at mail.ru as still to be send, only problem is its not possible to send. I noticed the buttons for sending change colour when used but they don't perform. What it is?

    Don't know what changed, but all of a sudden able to send emails by mail.ru ...... sorry for bothering.

  • Mail Adapter: Working with mail packages

    Hi All
    I am having a receiver mail adapter.
    I am using mail package to send data as a text file attachment.I am getting the following error:
    failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found TM_Mail at state 1
    How can i override my current namespace with the recomended namespace 'http://sap.com/xi/XI/Mail/30}Mail'??
    Thanks
    Chandra

    I am trying to use the mail package as well and no e-mail delivered.  However,  when I do not use the mail package an use mail attribute and remove the code below it works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30"> 
    <subject>824 test</subject>
    <from>edi/@/na.modine.com</from>
    <to>s.m.posnanski/@/na.modine.com</to>
    <reply_to>edi_support/@/na.modine.com</reply_to>
    <content_Type>text/plain</content_Type>
    <content>
    Hello
    </content>
    </ns:Mail>
    Can some provide the settings that are needed in the Module tab when using the "Mail Package" option??

  • Issue with mail package - namespace

    Hi All
    I am trying to use mail package in my receiver mail adapter.
    The mandatory elements for using mail package are:
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <Subject>Hello</Subject>
    <From>sender email</From>
    <To>receiveremail</To>
    <Content>This is a mail</Content>
    </ns:Mail>
    How can i get the above specified namespace? How can i override my existing namespace with this new one?
    As i am using message mapping, I spicified message type's 'XML Namespace' field as "http://sap.com/xi/XI/Mail/30".
    But even this doesnt help.
    Thanks
    Chandra

    I am also trying to use the namespace.  All seems to be working but I do not get the e-mail message sent to me.  This what shows in my Technical routing payload.  (FYI had to replace the "at" sign with "-" for this posting due to the limits for the forum software.)
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
      <subject>824 test</subject>
      <from>edi-na.modine.com</from>
      <to>s.m.posnanski-na.modine.com</to>
      <reply_to>edi_support-na.modine.com</reply_to>
      <content_Type>text/plain</content_Type>
      <content>Hello</content>
      </ns:Mail>
    I am usingXSL as an attachment and have the floowing defined in Module.
    Processing Sequence
    localejbs/AF_Modules/MessageTransformBean
       CHAN
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    email
    Module Configuration.
    CHAN      Transform.ContentDisposition      attachment.filename="file.html"
    CHAN      Transform.ContentType      text/html;charset=utf-8
    This works fine when not using "Mail Package".  I want to use mail package to be able to have a dynamic subject line for the e-mail.
    Thanks.
    Scott

  • Help with Mail Package

    Hi all,
    I have a interface PROXY - MAIL.
    I need to generate the attachment name dynamically, send an attachment and fill the body of email. I'm using Mail Package, according to note 748024.
    But I do not know how to fill the body of email and send attachment.Could someone help me?
    For the attachment name dynamically, I used the link: http://wiki.sdn.sap.com/wiki/display/SI/DynamicEmailAttachmentnameforReceivedMails

    Francis,
    Issue resolved.
    I didn't use the adapter module.
    I use the Mail Package and follow the links:
    /people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
    send a mail with a body and attachment
    Thanks.

  • Mail adapater with mail package option support cc ?

    Hi,
    I have scenario to sending mail information to multiple receiver. does mail adapter support cc as well ?
    if yes which field that i have to use ?
    Thank you and best regards
    Fernand

    Hi Fernand,
    If you want to update the Mail Header dyanmically from message mapping step, you might consider using Adapter Specific Message Attributes. So instead of using Mail Package and try to extend the XSD to have "Cc" attribute; use ASMA to update the XI message header at message mapping step and then in the Mail CC under Advanced Tab Page set Use Adapter Specific Message Attributes and Variable Transport Binding . The following attributes in the message header are available for processing :
    User
    Authentication Keys
    Mail header 'from' field
    Mail header 'to' field
    Mail header 'Cc' field
    Mail header 'Bcc' field
    Mail header 'subject' field
    Mail header field for reference to mail which is being replied to
    Mail header 'reply to' field
    Mail header field for mail client program
    Mail header field for delivery acknowledgement
    Mail header field for priority
    Mail header field for message importance
    Hope this helps.
    Regards,
    Suddha

  • 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

  • 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

  • I have a problem with Mail on my Macbook Pro. It is configurated with a gmail account, and now I can't access the mail. Is it possible to reboot the account or..? Please help:)

    I have a problem with Mail on my Macbook Pro. It is configurated with a gmail account, and now I can't access the mail. Is it possible to reboot the account or..? Please help:)

    The question mark means the computer cannot find a bootable volumes so can;t do anything, That, combined with annoying sounds, strongly suggests a failed hard drive.
    You can ask a "genius" at an Apple Rtail Store to test it but I'm pretty sure the drive is kaput. I'm hoping you had your data backed up.

  • Receiver Mail Adapter, Mail Package with Payload as Attachment

    Hi Everyone,
    I have spent the better part of the day today searching and testing all of the different combinations that I could think of to solve this problem, so please don't just do an SDN search for me and cut/paste in the links as there are too many contradictive answers piling up over the last year.
    I am trying to use a Receiver mail adapter to send some data using the mail package, and I want to have the <content> tag be in an attachment.  I am using mail package to dynamically set the mail address, but to also try and turn my data into a csv file that the recipient can open in Excel.
    My mail package sets the following values:
    <Content_Type>text/plain</Content_Type>
    <Content_Disposition>attachment</Content_Disposition>
    <Content>Sample Text</Content>
    This blog is basically what I am trying to do: 
    <a href="/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword:///people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    But no where in here is he setting ContentDisposition, and he is (potentially) not using the MessageTransformBean module.
    It is unclear if I need to use the MessageTransformBean to make this work? 
    Questions:
    1) Do I need to use the MessageTransformBean?
    2) Do I need to set the ContentDisposition in the mail package?
    3) Does Service Pack matter with these settings?  We are on SP15 upgrading to SP18 very soon.
    Thanks
    Peter

    Hi Peter,
    try:
    <Content_Type>text/plain;name="file.csv"</Content_Type>
    <Content_Disposition>attachment;filename="file.csv"</Content_Disposition>
    <Content>Sample Text</Content>
    Regards
    Stefan

  • How to maintain mail package option features with ASMA in mail adapter

    Hi Friends,
    While going through mail adapter sap notes I found that Mail package is deprecated, Can any one please give me an idea how to get these features that is header information (TO,From,Subject)  with ASMA(Adapter specific message attributes)
    Best Regards
    Raj

    This [link |Sender Mail Adapter ASMA issue - due to limitation of length upto 200 only.;address your issues... using header attributes length of the field < 200 might help.
    Have you seen help site
    http://help.sap.com/saphelp_nwpi71/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm

  • Mail package with attachment

    Hi,
    I have to send a flat file as attachment through the mail adapter in combination with the mail package because I have to communicate with several partners and I want to determine dynamically the "To:" depending on a field in the source structure (an IDoc).
    The scenario is almost complete. I've created the file as mail attachment using the MessageTransformBean module and it works fine but how can I map the xml structure needed for the mail package?
    I've already check the following weblogs but I didn't find the answer to my question.
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/srinivas.reddy/blog/2005/02/11/model-driven-architecturemda-for-dummies
    Thank you!
    Ciao
    Stefano

    Hi Stefano,
    Refer to the How-to Guide on Mail Adapter at the below link.
    https://websmp103.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202&_OBJECT=011000358700004556712005E
    Rgds,
    Sam Raju

  • Help with Treo 650 e-mail package selection

    I recetnly added e-mail service through Verizonwireless.  The tech there said that Verizon wireless synch is no longer supported and its versions are buggy and unreliable.  He loaded Chatter version 3.0.18 mail package and it works OK but when I switch applications from Chatter mail (home button scroll to web) the web app goes white screen and a soft reset is the only way to get the Treo back.
    Does anyone know of a reliable e-mail pakage or a way to prevetn this crash?
    Post relates to: Treo 650 (Verizon)

    timdon1 wrote:
    He loaded Chatter version 3.0.18 mail package and it works OK but when I switch applications from Chatter mail (home button scroll to web) the web app goes white screen and a soft reset is the only way to get the Treo back.
    What if you click the calendar or contacts button in between? Not to say you should always have to do that, but just wondering whether there is something special about going to the browser.
    timdon1 wrote:
    Does anyone know of a reliable e-mail pakage or a way to prevetn this crash?
    Verizon sold the 650 with a CD that contained Palm's VersaMail program. I think it probably lacked some of the features of Chattermail, but perhaps it won't crash.

  • Possible to retract emails with Mail (Exchange account)?

    One of the email accounts I work with is an on an Exchange Server. I know that on a PC you can retract sent email with Exchange, is this possible with Mail?
    Thanks

    Don't know what changed, but all of a sudden able to send emails by mail.ru ...... sorry for bothering.

  • Is there already an Intelligent Mail Package Bar Code created with InDesign?

    Is there already an Intelligent Mail Package Bar Code created with InDesign? Starting now the USPS will be tracking this newer bar code, and I would like to know if it can be done with InDesign instead of Planet Press.

    No.

Maybe you are looking for