EmailAddressCollection Constructor (String) |
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public EmailAddressCollection(
string emails
)
Public Sub New (
emails As String
)
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.
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);
}
Imports MailBee
Imports MailBee.Mime
Dim adrs As EmailAddressCollection = New EmailAddressCollection("jdoe@domain1.com, some one <someone@domain2.com>, me@host.com (Comment)")
For Each address As EmailAddress In adrs
Console.WriteLine(address.Email)
Next
See Also