EmailAddressToString Method
Returns the e-mail address as a string.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public override string ToString()

Return Value

Type: String
A string containing the full e-mail address (including display name and remarks if any).
The return value of this method is equivalent to the AsString property value. However, with AsString property, the developer can both get and set the e-mail address.
This sample creates the new instance of the EmailAddress object and converts it into a string.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

EmailAddress adr = new EmailAddress();

// Set the display name.
adr.DisplayName = "John Doe";

// Set the e-mail address.
adr.Email = "";

// Set the remarks.
adr.Remarks = "ABC Company";

// Show full e-mail address.
See Also