EmailAddressCollectionParse Method
Creates a new EmailAddressCollection instance from the specified string containing the list of e-mail addresses.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public static EmailAddressCollection Parse(
	string addressString
)

Parameters

addressString
Type: SystemString
The string specifying the list of the e-mail addresses delimited with comma (,) or semicolon (;).

Return Value

Type: EmailAddressCollection
EmailAddressCollection object representing addressString addresses.
Examples
This sample creates a new collection of full e-mail addresses and displays each actual e-mail address.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

EmailAddressCollection adrs =
    EmailAddressCollection.Parse(@"User1 <user1@domain.com>, user2@domain.com");
foreach (EmailAddress adr in adrs)
{
    Console.WriteLine(adr.Email);
}
See Also