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

MessageBuilder.Build Method (String, String, String, String, MimeTextContentType)

Build a MimeMessage with text Body

public static MimeMessage Build(
   string From,
   string To,
   string Subject,
   string Body,
   MimeTextContentType TextType
);

Parameters

From
The From address
To
The destination address
Subject
The subject
Body
The body text
TextType
The body Content-Type

Return Value

A MimeMessage

Remarks

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

Example

MimeMessage m = MessageBuilder (<test@toto.com>,<test2@tyty.com>,"Test","This is a test", MimeTextContentType.TextPlain);

Smtp.Send (m);

See Also

MessageBuilder Class | SmtPop Namespace | MessageBuilder.Build Overload List