Gets or sets the subject of the message.
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public string Subject { get; set; }
Public Property Subject As String
Get
Set
Property Value
Type:
StringThe string containing the subject of the message.
Remarks 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).
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;
Smtp mailer = new Smtp();
mailer.Subject = "Hello";
mailer.Subject = MailMessage.GetEncodedHeaderValue("Subject", "你好",
System.Text.Encoding.GetEncoding("gb2312"), HeaderEncodingOptions.Base64);
Imports MailBee
Imports MailBee.SmtpMail
Imports MailBee.Mime
Dim mailer As New Smtp
mailer.Subject = "Hello"
mailer.Subject = MailMessage.GetEncodedHeaderValue("Subject", "你好", _
System.Text.Encoding.GetEncoding("gb2312"), HeaderEncodingOptions.Base64)
See Also