Skip to Content
author's profile photo Former Member
Former Member

Sending XI-Content as Mail Attachement with specific Filename


I want to send the Message-Content as a mail attachment with a specific Filename (e.g. 2005-08-31.csv). The content is a CSV File, not a XML

In the scenario an IDOC is sent to the XI mapped in a CSV-File (via Java-Mapping) and should be send as a Mail Attachment.

Is this possible and how?

Thank you for your help


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 31, 2005 at 01:33 PM

    Hi Thomas,

    You can influence the filename with the ModuleTransformBean. You need at least SP9 for this feature.

    In the Mail Receiver Channel got to tab "Module"

    As first module (before the mail module) enter:

    localejbs/AF_Modules/MessageTransformBean as Local Enterprise Bean with any key

    For this module key you can use in the module configuration following entries:

    Transform.ContentDisposition inline|attachment;filename=<filename>
    Transform.ContentDescription <Filename>
    Transform.ContentType <MimeType>/<SubType>;name="<filename>"

    If you want to send an attachment, use:

    Transform.ContentDisposition attachment;filename="MyFile.csv"
    Transform.ContentDescription MyFile
    Transform.ContentType text/plain;name="MyFile.csv"

    If you use the Mail Package, you can set the file name that way:

    <ns:Mail xmlns:ns="">
      <Content>Here comes the CSV Data</Content>

    Hope that helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.