Click or drag to resize
MimeKit

MailboxAddress Constructor (String)

Note: This API is now obsolete.

Initialize a new instance of the MailboxAddress class.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.14.0
Syntax
C#
[ObsoleteAttribute("This constructor will be going away due to it causing too much confusion. Use new MailboxAddress(string name, string address) or MailboxAddress.Parse(string) instead.")]
public MailboxAddress(
	string address
)

Parameters

address
Type: SystemString
The address of the mailbox.
Exceptions
ExceptionCondition
ArgumentNullExceptionaddress is null.
ParseExceptionaddress is malformed.
Remarks

Creates a new MailboxAddress with the specified address.

Note Note

The address must be in the form user@example.com.

This method cannot be used to parse a free-form email address that includes the name or encloses the address in angle brackets.

To parse a free-form email address, use Parse(String) instead.

See Also