Parses an e-mail address string and returns
EmailAddress object which represents the given e-mail addresses.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public static EmailAddress Parse(
string addressString
)
Public Shared Function Parse (
addressString As String
) As EmailAddress
Parameters
- addressString
- Type: SystemString
The full e-mail address string (with optional remarks and friendly name) to parse.
Return Value
Type:
EmailAddressEmailAddress object representing
addressString address.
Examples This sample creates a new instance of
EmailAddress object from string.
using MailBee;
using MailBee.Mime;
EmailAddress adr = EmailAddress.Parse("User <user@domain.com>");
Console.WriteLine(adr.DisplayName);
Console.WriteLine(adr.Email);
Imports MailBee
Imports MailBee.Mime
Dim adr As EmailAddress = EmailAddress.Parse("User <user@domain.com>")
Console.WriteLine(adr.DisplayName)
Console.WriteLine(adr.Email)
See Also