EmailAddress Constructor (String, String)
Initializes a new instance of the EmailAddress object from the specified e-mail address and display name.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public EmailAddress(
	string email,
	string displayName
)

Parameters

email
Type: SystemString
The actual e-mail address (such as johndoe@domain.com).
displayName
Type: SystemString
The name which is displayed with the actual e-mail address (such as John Doe). If a null reference (Nothing in Visual Basic), no display name will be assigned to the e-mail address.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionemail is a null reference (Nothing in Visual Basic).
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", "John Doe");
See Also