EmailValidator class provides the capability to validate e-mail addresses.
More...
Inherits Object.
EmailValidator class provides the capability to validate e-mail addresses.
◆ EmailValidator()
Aspose::Email::Tools::Verifications::EmailValidator::EmailValidator |
( |
| ) |
|
◆ ~EmailValidator()
virtual Aspose::Email::Tools::Verifications::EmailValidator::~EmailValidator |
( |
| ) |
|
|
protectedvirtual |
◆ get_DnsServers()
System::ArrayPtr<System::String> Aspose::Email::Tools::Verifications::EmailValidator::get_DnsServers |
( |
| ) |
const |
Gets the Dns server list to use in the email validation.
◆ get_Timeout()
int32_t Aspose::Email::Tools::Verifications::EmailValidator::get_Timeout |
( |
| ) |
const |
Gets the length of time (in milliseconds) until the request times out.
◆ set_DnsServers()
void Aspose::Email::Tools::Verifications::EmailValidator::set_DnsServers |
( |
System::ArrayPtr< System::String > |
value | ) |
|
Sets the Dns server list to use in the email validation.
◆ set_Timeout()
void Aspose::Email::Tools::Verifications::EmailValidator::set_Timeout |
( |
int32_t |
value | ) |
|
Sets the length of time (in milliseconds) until the request times out.
◆ Validate() [1/2]
void Aspose::Email::Tools::Verifications::EmailValidator::Validate |
( |
System::String |
mailAddress, |
|
|
System::SharedPtr< ValidationResult > & |
result |
|
) |
| |
Validate email address, with the MailServer validation policy.
- Parameters
-
mailAddress | The Email address to be validated. |
result | The result of the validation. |
◆ Validate() [2/2]
void Aspose::Email::Tools::Verifications::EmailValidator::Validate |
( |
System::String |
mailAddress, |
|
|
ValidationPolicy |
policy, |
|
|
System::SharedPtr< ValidationResult > & |
result |
|
) |
| |
Validating the email address
- Parameters
-
mailAddress | The mail address to be validated. |
policy | The policy of the validating process. |
result | The result of the validating process. |
◆ DomainValidating
System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<DomainValidatingEventArgs>)> Aspose::Email::Tools::Verifications::EmailValidator::DomainValidating |
This event occurs when validating the domain of an email addresss.
◆ MailServerValidating
System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<MailServerValidatingEventArgs>)> Aspose::Email::Tools::Verifications::EmailValidator::MailServerValidating |
This event occurs when validating an email addresss on its mail server.
◆ SyntaxValidating
System::Event<void(System::SharedPtr<System::Object>, System::SharedPtr<SyntaxValidatingEventArgs>)> Aspose::Email::Tools::Verifications::EmailValidator::SyntaxValidating |
This event occurs when validating the syntax of an email addresss.