How to check whether email /domain exists
Grant Edwards
grante at visi.com
Wed Apr 3 10:33:52 EST 2002
In article <mailman.1017822968.14537.python-list at python.org>, A wrote:
> What is the simplest way how to check
> whether a given email address( or domain for this email) exists?
The simplest way is using the function below:
def isEmailAddrValid(addr):
return 1
It's small, fast, and generates no network traffic! You don't
even have to be attached to a network to use it! And it's
almost as accurate as anything else you can do short of sending
an e-mail and requesting that the user reply.
On a more serious note, about the only thing you can really do
is to look up the MX record and see if the host it points to
has an SMTP server by connecting to port 25.
--
Grant Edwards grante Yow! Is this going to
at involve RAW human ecstasy?
visi.com
More information about the Python-list
mailing list