DsnAttachment Constructor
Creates a new instance of DsnAttachment class from the specified attachment.

Namespace: MailBee.BounceMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public DsnAttachment(
	Attachment dsnAttach,
	Encoding enc
)

Parameters

dsnAttach
Type: MailBee.MimeAttachment
The attachment containing DSN data.
enc
Type: System.TextEncoding
The encoding to use for decoding the attachment data from bytes to strings. If a null reference (Nothing in Visual Basic), the encoding will be determined from the attachment header (Attachment.AsMimePart.Charset).
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptiondsnAttach is a null reference or its Content-Type is not "message/delivery-status" (not a DSN).
Remarks
This constructor is useful if you need to create DsnAttachment object from arbitrary data, not from MailMessage object. See DsnAttachment class description for details.
See Also