EmailAddress Constructor (String)
Initializes a new instance of the EmailAddress object with the specified e-mail address.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public EmailAddress(
	string email
)

Parameters

email
Type: SystemString
The actual e-mail address (such as johndoe@domain.com).
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionemail is a null reference (Nothing in Visual Basic).
Remarks
To build an EmailAddress object from the full e-mail address (such as "John Doe, Jr." <jdoe@domain.com>), the developer can use Parse(String) method.
Examples
This sample creates a new instance of the EmailAddress object.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

EmailAddress adr = new EmailAddress("john_doe@domain.com");
See Also