Reputation: 370
I used validate_email module in python to check whether a user's email id is exist or not for my web application. But it returns True always.
here is my code
from validate_email import validate_email
is_valid = validate_email('[email protected]',check_mx=True) #Checking if the host has SMPT Server
Then i tried
from validate_email import validate_email
is_valid = validate_email('[email protected]',verify=True) # Checking if the host has SMPT Server and the email really exists
Upvotes: 2
Views: 1481
Reputation: 328556
There is no way to check whether an email address really exists. Mail servers simply don't return this information anymore (because spammers used it to collect lists of recipients that way).
Even actually sending a mail doesn't help since most mail server will accept such mail and then throw it away.
Upvotes: 3