Cleanse
Checks if an email address is valid, and suggests possible corrections.
To connect to this service you'll need to use one of these endpoints:
Description
Checks an email address for validity at the requested level, and provides suggested corrections. The service can suggest corrections for misspelt email domains and mailboxes, and common errors such as incorrect punctuation. For the best results, supply the person's name as part of the record
parameter.
Parameters
The following parameters can be supplied to this method
username |
username apikey- , e.g.
apikey-ABCD-1234-EFGH-5678
|
---|---|
password |
password |
email The email address to validate |
|
level | level The level to validate the
|
record | record Additional details about the person or company the
|
options | options |
Advanced Options
The following options can be specified as part of the option
parameter. Each option is specified
as a key/value pair. The list of available names is shown below, along with a description of the allowable values
for that name.
Common Options | |
---|---|
Name | Description |
ApplicationName | ApplicationName Gives the name of the calling application - used to break down usage by application in the usage reports on the dashboard |
Service-Specific Options | |
Name | Description |
MissingMXRecordHandling | MissingMXRecordHandling If the The default Alternatively the values |
Results
This method returns an object containing the following fields:
Status |
Status Success field is true , the other results described below can be used to get the results of the method.
If Success is false , some error occurred in calling the method, such as the authentication failed or the
account is out of credits. The details of the error can be obtained from the ErrorMessage field, and any other results should be ignored
|
---|---|
Result | Result A status code indicating if the email address could be validated. The following values are available:
|
OriginalValid | OriginalValid Indicates if the original email address was valid before being corrected |
EmailType | EmailType Indicates the type of email address that was supplied. This can be one of the following values:
|
SuggestedEmailAddress | SuggestedEmailAddress A suggested correction of the supplied email address |
Comment | Comment A free-text description of why the email address was modified |
Salutation | Salutation The suggested name to be used in the greeting line of an email to this address |
StructureUsed | StructureUsed A description of the structure of the username part of the email address |
ParsedName | ParsedName A parsed name constructed from the email address |