SmtpAddressError Enumeration

The reason that an address failed SMTP address validation.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public enum SmtpAddressError

Remarks

The reason that an address failed validation by the SmtpAddressValidator.

When an address violates more than one rule, the first violation found is reported. The rules are checked in the order that they are declared in this enum.

Members

None 0 The address is valid.
Syntax 1 The address does not match the Mailbox syntax defined in rfc5321.
NonAscii 2 The address contains non-ASCII characters and can only be used with the SMTPUTF8 extension defined in rfc6531.
LocalPartTooLong 3 The local-part exceeds 64 octets.
LabelTooLong 4 A label in the domain exceeds 63 octets.
DomainTooLong 5 The domain exceeds 253 octets.
AddressTooLong 6 The address exceeds 254 octets.

See Also