TnefParserGetAttachments Method (String, TnefExtractionOptions) |
Namespace: MailBee.Tnef
public static AttachmentCollection GetAttachments( string filename, TnefExtractionOptions options )
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | filename is a null reference (Nothing in Visual Basic) or an empty string. |
MailBeeIOException | A file reading error occurred. |
MailBeeTnefException | A TNEF parsing error occurred. |
In case if you got an e-mail with a TNEF attachment, it's easier to use GetAttachmentsFromTnef method to extract data from it.
This overload internally handles the situation when the source file contents ends with excessive CRLF at the end. You don't need to do anything to handle this situation.