Displaying Message Attachments

I am displaying the body in a

which seems to work well, how do I display the attachments, if the message has any?

Thank you,

Faruk

Hi Faruk,


As mentioned earlier, Aspose.Email API doesn’t have any UI element for display of email contents including its body and attachments. You can use your own logic to add some UI elements for listing these attachments. Please note that attachments can be of different types and Aspose.Email API won’t be able to read all types such as Word, Excel, etc.

Yes I do understand that you don’t have a UI, my question was not asking you for a UI, rather the command/property to get a handle on the attachment. How do I determine what type of file is attached? Once I can get a handle on the attachment, I can then maybe display a link to it.


I am also confused with your statement that ASPOSE does not read Word and Excel? If the computer running the application has office installed and I have a link to the file, why would the link not be opened? I am not expecting to open a file type without the underlying application already installed on the computer.

Thank you,

Faruk

Hi Faruk,

Aspose.Email API has full capability to manipulate a message’s attachments. Your can get access to attachments, add attachments to message, extract attachment for saving to disc or even remove attachments from a message. Please have a look at our documentation section, Working with Attachments and Embedded Objects , for further information in this regard.

Regarding your concern about Word and Excel file, we actually meant that Aspose.Email API can’t open these file formats. If a message has these attachments, you can download/save the attachments from the message and save them to disc for opening with MS Excel or Word. Please let us know if you have any further query in this regard.