Initializes a new instance of the EmailAddress object from the specified e-mail address parts.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | email is a null reference (Nothing in Visual Basic). |
This sample creates a new instance of the EmailAddress object.
[C#] // 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", "ABC Company");
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.Mime Dim adr As New EmailAddress("john_doe@domain.com", "John Doe", "ABC Company")
EmailAddress Class | MailBee.Mime Namespace | EmailAddress Constructor Overload List | EmailAddressCollection | MailMessage