SmtpSubject Property
Gets or sets the subject of the message.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public string Subject { get; set; }

Property Value

Type: String
The string containing the subject of the message.
Remarks
This property is equivalent to Subject property of Message object.
Examples
Specifying message subject in normal way and in encoded form (useful if the subject string contains non-English characters and you don't want to use the default UTF-8 encoding for some reason).
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;

// The actual code (put it into a method of your class)

Smtp mailer = new Smtp();

// "Hello" in English.
mailer.Subject = "Hello";

// "Hello" in Simplified Chinese (gb2312 charset).
mailer.Subject = MailMessage.GetEncodedHeaderValue("Subject", "你好",
    System.Text.Encoding.GetEncoding("gb2312"), HeaderEncodingOptions.Base64);
See Also