EmailAddressCollectionToString Method
Returns the string containing all the e-mail addresses in the collection.

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

Return Value

Type: String
The comma-separated list of the full e-mail addresses (with optional friendly names and remarks) in the collection.
By default, the e-mail addresses are delimited with comma (",") character. See AsString topic on how to change the delimiter to semicolon (;).
This sample creates the new collection of the e-mail addresses and displays this collection as string.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

EmailAddressCollection adrs = new EmailAddressCollection();
adrs.AddFromString("some one <>");
adrs.AddFromString(" (Comment)");

// Output:, "some one" <>, (Comment)
See Also