public final class EmailValidator extends Object
EmailValidator class provides the capability to validate e-mail addresses.
| Constructor and Description |
|---|
EmailValidator()
Create an instance of EmailValidator.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getDnsServers()
Gets or sets the Dns server list to use in the email validation.
|
int |
getTimeout()
Gets or sets the length of time (in milliseconds) until the request times out.
|
void |
setDnsServers(String[] value)
Gets or sets the Dns server list to use in the email validation.
|
void |
setTimeout(int value)
Gets or sets the length of time (in milliseconds) until the request times out.
|
void |
validate(String mailAddress,
int policy,
ValidationResult[] result)
Validating the email address
|
void |
validate(String mailAddress,
ValidationResult[] result)
Validate email address, with the MailServer validation policy.
|
public final String[] getDnsServers()
Gets or sets the Dns server list to use in the email validation.
public final void setDnsServers(String[] value)
Gets or sets the Dns server list to use in the email validation.
public final int getTimeout()
Gets or sets the length of time (in milliseconds) until the request times out.
public final void setTimeout(int value)
Gets or sets the length of time (in milliseconds) until the request times out.
public final void validate(String mailAddress, int policy, ValidationResult[] result)
Validating the email address
mailAddress - The mail address to be validated.policy - The policy of the validating process.result - The result of the validating process.public final void validate(String mailAddress, ValidationResult[] result)
Validate email address, with the MailServer validation policy.
mailAddress - The Email address to be validated.result - The result of the validation.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.