Berislav Lopac
1777ca0a30
Updated to Python 3.
...
In order to preserve compatibility with Python 2, raw_input was preserved.
2014-10-12 19:51:42 +01:00
Christophe de Vienne
5599863f18
Discover the dns server only once
2014-04-08 12:10:38 +02:00
Christophe de Vienne
892f864278
Add a cache for check_mx.
...
Once a mx has been checked, any further check on the same mx will immediately
return without actually connecting to the smtp server.
2014-04-08 12:06:31 +02:00
Christophe de Vienne
26e67ff572
If dnslookup return NXDOMAIN, return False
...
A NXDOMAIN error from dnslookup means the domain does not exists. In such a
cas, we consider the email address as being invalid.
,
2014-04-08 11:59:07 +02:00
Christophe de Vienne
25d16d8a4d
Ignore SMTPServerDisconnected from smtp.quit()
...
This exception is raised by smtp.quit() for some smtp servers (for example
laposte.net).
2014-04-08 11:47:42 +02:00
Syrus Akbary
8e4963f42b
Fixed #17 - Added timeout option for smtp connections.
2014-03-20 12:41:21 +01:00
Andrea Crotti
a6a10744aa
cache the mx from the cache since it's very unlikely to change and we
...
can spare many DNS requests
2014-01-07 11:51:50 +00:00
Paulo Scardine
cbba38aaeb
Suggestions for #4 (returning None) and #2 (logging server responses)
...
* removed unused "import socket"
* changed broad "except" clause to more specific "except ImportError"
* general PEP8 reformat
* added "debug" option for logging server responses/errors
* return None instead of True/False on several errors that may be temporary
2013-06-01 18:15:37 -03:00
Paulo Scardine
9679958340
Suggestions for #4 (returning None) and #2 (logging server responses)
...
* removed unused "import socket"
* changed broad "except" clause to more specific "except ImportError"
* general PEP8 reformat
* added "debug" option for logging server responses/errors
* return None instead of True/False on several errors that may be temporary
2013-06-01 16:54:39 -03:00
Mikkel Munch Mortensen
7021c42bde
Quitting SMTP connection.
2013-05-02 14:01:48 +02:00
Syrus Akbary
86ae68a53c
Changed from mx to check_mx
2012-04-07 23:13:13 +02:00
Syrus Akbary
49034b13b6
First version
2012-04-07 23:05:57 +02:00