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

MessageBuilder.Build Method (String, String, String, String, MimeTextContentType, Byte[], String, String)

Build a MimeMessage with text body and binary as attachment

public static MimeMessage Build(
   string From,
   string To,
   string Subject,
   string Body,
   MimeTextContentType TextType,
   byte[] Data,
   string MimeType,
   string Name
);

Parameters

From
The source address
To
The destination address
Subject
The mail subject
Body
The mail body text
TextType
The body Content-Type
Data
The binary data to send as attachment
MimeType
The mime type for binary data (ie "application/binary")
Name
The name of the attachment

Return Value

A MimeMessage

Remarks

All text is encoded with the default charset define in SmtPop.Config

See Also

MessageBuilder Class | SmtPop Namespace | MessageBuilder.Build Overload List