AttachmentGetAttachmentsFromTnef Method |
Namespace: MailBee.Mime
Exception | Condition |
---|---|
MailBeeException | An error occurred and ThrowExceptions is true. |
Prior to calling this method, check IsTnef property value to determine whether the attachment is TNEF or not.
This overload does not extract RFT message body from TNEF. Use GetAttachmentsFromTnef(TnefExtractionOptions) overload for that.
If winmail.dat contains nested winmail.dat files, they will be decoded as well as "message/rfc822" attachments. To process them, check IsMessageInside property and GetEncapsulatedMessage method to get internal MailMessage object. For that object, you can then iterate through Attachments collection to get its contents. You no longer need to call GetAttachmentsFromTnef for nested objects. Single GetAttachmentsFromTnef call extracts contents from all winmail.dat files on all levels.