Office 2013 and later

This section provides a sample task that involves e-mail attachments.

How to: Programmatically Remove Security Level 2 Attachments from Messages and Save Them to Disk

Removes security Level 2 attachments from e-mail messages and saves them to a disk, from where they can be opened.