EmailAddress Constructor (String) |
Initializes a new instance of the
EmailAddress object with the specified e-mail address.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public EmailAddress(
string email
)
Public Sub New (
email As String
)
Parameters
- email
- Type: SystemString
The actual e-mail address (such as johndoe@domain.com).
Exceptions 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.
using MailBee;
using MailBee.Mime;
EmailAddress adr = new EmailAddress("john_doe@domain.com");
Imports MailBee
Imports MailBee.Mime
Dim adr As New EmailAddress("john_doe@domain.com")
See Also