EmailAddressToString Method
Returns the 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 override string ToString()

Return Value

Type: String
A string containing the full e-mail address (including display name and remarks if any).
Remarks
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.
Examples
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 = "jdoe@domain.com";

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

// Show full e-mail address.
Console.WriteLine(adr.ToString());
See Also