Skip to Content
Former Member
Oct 19, 2006 at 12:25 PM

How to get filename from mail attachment


Hi all,

I have a XI scenario Mail->XI->RFC. I have created my own adapter module which handle all attachments from incoming mail.

Everything work fine, but in my module I try to get information about filename of mail attachment. I use getContentType() metod to get the filename but this method return only the mimetype of the document. The getDescription() method return olny string "mail attachment". I need to get the original filename of the attachment or at least the file extension.

Is it possible to get the whole filename from mail attachment?