Skip to Content

How to send original filename as the attachment name through mail adapter?

Hi,

I have a File to Mail scenario where the file is picked up from a folder in R/3 system and is sent as an attachment through mail. The requirement is to send the file unconverted and with the same file name.

When tried without creating any ESR objects, it was sending the file with the name Untitled.xml.

Since the filename has to be picked dynamically, I am not able to configure it through module parameters also (where we can set it through Content_Disposition)

I tried configuring it as mentioned in the following link: [http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=138084630]

But still it is going as Untitled.xml with the whole mail package as the content of the attachment.

Any pointers to solve this issue will be of great help.

Thanks

Justin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Feb 29, 2012 at 12:22 PM

    Hi,

    Plz Refer the following link

    http://forums.sdn.sap.com/thread.jspa?threadID=162961&tstart=0

    Regards,

    Gagandeep

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 29, 2012 at 12:26 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 01, 2012 at 06:02 AM

    there is no standard way so you will have to write module beans.

    in other way:

    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping

    Dynamic name in the mail attachment - pseudo "variable substitution" :

    XI: Dynamic name in the mail attachment - pseudo "variable substitution"

    Dynamic attachment name in receiver mail adapter

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 29, 2012 at 03:06 PM

    You need to create custom adapter module that would be used in receiver mail adapter. For module code you can check this [wiki|http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0SetAttachmentName].

    Regards,

    Sunil Chandra

    Add comment
    10|10000 characters needed characters exceeded