I'm trying to validate emails using validate_email 1.3 : Python Package Index, like this:
from validate_email import validate_email
is_valid = validate_email('[email protected]',check_mx=True)
How can I speed this up? My for loop isn't very effective with amount of emails I need to verify...
check_mxchecks every SMTP-server by trying to establish a connection to it wich takes some time. However, since this is a so called I/O-bound process you can try to use different threads in parallel.MXrecord as well, I'm thinking of "multithreading" ...