SmtpUtf8AddressValidatorIsValid(String) Method

Check whether an address is a valid SMTPUTF8 address.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static bool IsValid(
	string address
)

Parameters

address  String
The address.

Return Value

Boolean
if the address is valid; otherwise, .

Remarks

Checks whether an addr-spec (such as user@example.com) is a valid SMTPUTF8 address as defined by draft-ietf-mailmaint-smtputf8-syntax.

The address must not include a display name, angle brackets, comments, or folding whitespace.

Exceptions

ArgumentNullException address is .

See Also