A simple webpage to check if an email address exists or not.
Input | Output | Meaning |
---|---|---|
[email protected] | Green | Email exists |
[email protected] | Red | Email does not exist |
[email protected] | Yellow | Email exists but is disposable |
The script requests data from the Mailboxlayer API, a REST API which validates and verifies email addresses. If an email address exists the page turns green, otherwise it turns red. If the API detects that the email address exists but is disposable, the page turns yellow.
The API provides much more information about email addresses that could be implemented into the site. An example result:
{
"email":"[email protected]",
"did_you_mean":"",
"user":"contact",
"domain":"param.me",
"format_valid":true,
"mx_found":true,
"smtp_check":true,
"catch_all":null,
"role":false,
"disposable":false,
"free":false,
"score":0.96
}
In the future, auto-correction will be implemented, as well as the score (rating) of the trustworthiness of an email address.