Smtp Utf 8Address ValidatorIs Valid(Mailbox Address, Smtp Utf 8Address Validation Options) Method
Check whether a mailbox address is a valid SMTPUTF8 address.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the address is valid; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static bool IsValid(
MailboxAddress mailbox,
SmtpUtf8AddressValidationOptions options
)Parameters
- mailbox MailboxAddress
- The mailbox address.
- options SmtpUtf8AddressValidationOptions
- The validation options.
Return Value
Booleanif the address is valid; otherwise, .
Remarks
Checks whether the Address of the mailbox is a valid SMTPUTF8 address as defined by draft-ietf-mailmaint-smtputf8-syntax, using the specified options. The display name and the route of the mailbox are not validated.
Exceptions
| ArgumentNullException | mailbox is . |