MailBee.NET Objects 7.1

EmailAddress.Remarks Property

Contains the additional information (remarks) about the e-mail address.

public string Remarks {get; set;}

Property Value

A string containing the remarks about e-mail address.

Remarks

For instance, if the full e-mail address string is Support Team <support@domain.com> (My Company), the remarks are My Company.

Example

This sample creates a new instance of the EmailAddress object and displays the full address (including display name and remarks).

[C#]
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

EmailAddress adr = new EmailAddress();

// Add display name.
adr.DisplayName = "John Doe";

// Add e-mail address.
adr.Email = "doe@domain.com";

// Add remarks.
adr.Remarks = "ABC Company";

// Show entire e-mail address string.
Console.WriteLine(adr.ToString());
[Visual Basic]
' To use the code below, import MailBee namespaces at the top of your code.
Imports MailBee
Imports MailBee.Mime

' Create new EmailAddress object.
Dim adr As New EmailAddress

' Add display name.
adr.DisplayName = "John Doe"

' Add e-mail address.
adr.Email = "doe@domain.com"

' Add remarks.
adr.Remarks = "ABC Company"

' Show entire e-mail address string.
Console.WriteLine(adr.ToString())

See Also

EmailAddress Class | MailBee.Mime Namespace | AsString | Email