EmailAddressCollection Constructor (String)
Initializes a new EmailAddressCollection instance from a string containing e-mail addresses.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public EmailAddressCollection(
	string emails
)

Parameters

emails
Type: SystemString
The string containing the list of the e-mail addresses delimited with comma (,) or semicolon (;). The e-mail addresses may include display names or remarks.
Examples
This sample creates a new collection of the e-mail addresses and displays each address in this collection.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

EmailAddressCollection adrs = new EmailAddressCollection("jdoe@domain1.com, some one <someone@domain2.com>, me@host.com (Comment)");
foreach (EmailAddress address in adrs)
{
    Console.WriteLine(address.Email);
}
See Also