EmailAddressDisplayName Property
Gets or sets the name which is displayed with the e-mail address.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public string DisplayName { get; set; }

Property Value

Type: String
A string containing the display name of the current e-mail address. The default value is an empty string.
For instance, if the full e-mail address string is Support Team <> (My Company), the Support Team is a display name.
This sample creates a new instance of the EmailAddress object and displays the full address (including display name).
// 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 = "";

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

// Show entire e-mail address string.
See Also