EmailAddressEmail Property
Gets or sets the actual e-mail address as a string.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public string Email { get; set; }

Property Value

Type: String
A string containing the actual e-mail address (without DisplayName and Remarks).
Remarks

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

If you need to deal with international e-mail addresses (IDN domains), consider FromIdnAddress and ToIdnAddress methods.

Examples
This sample creates a new instance of the EmailAddress object and displays the full address (including e-mail address).
// 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());
See Also