Simple Mail and Post Office Protocol for .Net (SmtPop)

MimeAttachment Constructor (String, MimeTextContentType, MimeTransferEncoding, Encoding)

Constructs an attachment from a body string

public MimeAttachment(
   string body,
   MimeTextContentType type,
   MimeTransferEncoding coding,
   Encoding charset
);

Parameters

body
The body text
type
The content-type text
coding
The text Content-transfer-encoding
charset
The text charset

Example

MimeAttachment m = new MimeAttachment ("hello", MimeTextContentType.TextPlain, MimeCharset.UTF8);

See Also

MimeAttachment Class | SmtPop Namespace | MimeAttachment Constructor Overload List