EmailValidator Class

EmailValidator class provides the capability to validate e-mail addresses.
Inheritance Hierarchy
SystemObject
  Aspose.Email.Tools.VerificationsEmailValidator

Namespace:  Aspose.Email.Tools.Verifications
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.10
Syntax
public sealed class EmailValidator

The EmailValidator type exposes the following members.

Constructors
  NameDescription
Public methodEmailValidator
Create an instance of EmailValidator.
Properties
  NameDescription
Public propertyDnsServers
Gets or sets the Dns server list to use in the email validation.
Public propertyTimeout
Gets or sets the length of time (in milliseconds) until the request times out.
Methods
  NameDescription
Public methodBeginValidate
Begins an asynchronous validating process for an email address.
Public methodEndValidate
Ends an asynchronous validating process for an email address.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate(String, ValidationResult)
Validate email address, with the MailServer validation policy.
Public methodValidate(String, ValidationPolicy, ValidationResult)
Validating the email address
Events
  NameDescription
Public eventDomainValidating
This event occurs when validating the domain of an email addresss.
Public eventMailServerValidating
This event occurs when validating an email addresss on its mail server.
Public eventSyntaxValidating
This event occurs when validating the syntax of an email addresss.
See Also