Email Validator

फ्रीमियम
द्वारा André Filipe | अपडेट किया गया 3 месяца назад | Email
लोकप्रियता

9.5 / 10

लेटेंसी

3,356ms

सेवा का स्तर

99%

Health Check

N/A

फॉलोवर: 5
API निर्माता:
Rapid account: Andre Filipe
André Filipe
MASNathan
API को रेट करने के लिए लॉग इन करें
रेटिंग: 5 - वोट: 1

रीडमी

The goal is to check if an email might be acceptable or not. For that you need to combine the response values that are important to you. Here is an example response:

{
    "email": "mail@domain.com",
    "valid": true, // Email correctly formatted accordingly to RFC rules
    "disposable": true, // Belongs to a disposable email service
    "mx_records": true, // Has MX records, migth have emails associated with it
    "exists": null // Connects to SMTP to check if the account exists (null means SMTP wasn't reached)
}

A good indicator if the email exist or not is to evaluate the mx_records. If it’s false, the email doesn’t exist

In PHP, you can use something like this:

if ($response->valid && !$response->disposable && $response->mx_records && ($response->exists === null || $response->exists)) {
    // there is an high chance of the email being reachable
}