summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1430298: It is now possible to send a mail with an emptyGeorg Brandl2006-02-171-1/+4
| | | | return address using smtplib.
* SMTP.help() was returning a tuple instead of the promised text.Kurt B. Kaiser2005-06-261-1/+1
|
* Replace list of constants with tuples of constants.Raymond Hettinger2005-02-061-1/+1
|
* Patch #1100140: improved smtp connect debuggingJohannes Gijsbers2005-01-161-2/+2
| | | | | Don't print the same (host, port) tuple thrice when debugging, but first print (host, port), then (ip, port) and then the error message.
* Replace rfc822.parseaddr with email.Utils.parseaddr. The implementation isJohannes Gijsbers2005-01-081-2/+2
| | | | still the same, so there should be no backwards-compatibility problems.
* Patch #1075928: AUTH PLAIN in smtplib.Johannes Gijsbers2004-12-061-1/+1
| | | | | | smtplib can not log in to some server using command AUTH PLAIN, it sends ``user\0user\0pass'' to the server, but ``\0user\0pass'' has better compatibility.
* Debug output is now printed to sys.stderr .Brett Cannon2004-07-101-9/+10
| | | | Closes bug #980938.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-4/+4
| | | | From SF patch #852334.
* Patch #572031: AUTH method LOGIN for smtplibMartin v. Löwis2002-10-061-1/+1
| | | | (most of the patch hides in rev. 1.59). Backported to 2.2.
* smptlib did not handle empty addresses.Raymond Hettinger2002-09-051-3/+3
| | | | | | | | The problem was that it expected rfc822.parseaddr() to return None upon a parse failure. The actual, documented return value for a parse failure is (None, None). Closes SF bug 602029.
* Whitespace normalization.Tim Peters2002-08-081-1/+1
|
* Patch #586999: Fix multiline string in sendmail example.Martin v. Löwis2002-07-281-1/+1
|
* remove o/s dependancy from testPiers Lauder2002-07-271-7/+32
|
* Remove uses of the string and types modules:Walter Dörwald2002-06-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | x in string.whitespace => x.isspace() type(x) in types.StringTypes => isinstance(x, basestring) isinstance(x, types.StringTypes) => isinstance(x, basestring) type(x) is types.StringType => isinstance(x, str) type(x) == types.StringType => isinstance(x, str) string.split(x, ...) => x.split(...) string.join(x, y) => y.join(x) string.zfill(x, ...) => x.zfill(...) string.count(x, ...) => x.count(...) hasattr(types, "UnicodeType") => try: unicode except NameError: type(x) != types.TupleTuple => not isinstance(x, tuple) isinstance(x, types.TupleType) => isinstance(x, tuple) type(x) is types.IntType => isinstance(x, int) Do not mention the string module in the rlcompleter docstring. This partially applies SF patch http://www.python.org/sf/562373 (with basestring instead of string). (It excludes the changes to unittest.py and does not change the os.stat stuff.)
* Patch #552060: Add SSLFakeSocket.sendall. Also committed for 2.2 maint.Martin v. Löwis2002-06-021-0/+2
|
* Replace boolean test with is None.Raymond Hettinger2002-06-021-1/+1
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-1/+1
|
* Replace '== None' with 'is None'Raymond Hettinger2002-05-311-1/+1
|
* Whitespace normalization.Tim Peters2002-04-161-2/+2
|
* ehlo(): A proper fix for SF bug #498572. RFC 1869 describes ESMTPBarry Warsaw2002-04-151-1/+5
| | | | | | | | | | | | | which requires that if there are ehlo parameters returned with an ehlo keyword (in the response to EHLO), the keyword and parameters must be delimited by an ASCII space. Thus responses like 250-AUTH=LOGIN should be ignored as non-conformant to the RFC (the `=' isn't allowed in the ehlo keyword). This is a bug fix candidate.
* __init__(): We'll try to be more RFC 2821 compliant by providing for aBarry Warsaw2002-03-261-2/+11
| | | | | | | | | | | | | | | better local_hostname default. According to RFC 2821, it is recommended that the fqdn hostname be provided in the EHLO/HELO verb and if that can't be calculated, to use a domain literal. The rationale for this change is documented in SF patch #497736 which also had privacy concerns about leaking the fqdn in the EHLO/HELO. We decided this wasn't a big concern because no user data is leaked, and the IP will always be leaked. The local_hostname argument is provided for those clients that are super paranoid. Using localhost.localdomain may break some strict smtp servers so we decided against using it as the default.
* SMTP.__init__(): Fixed minor typo in docstring.Barry Warsaw2002-03-251-1/+1
|
* Add local_hostname option to SMTP.__init__. If supplied, it is usedNeil Schemenauer2002-03-241-10/+10
| | | | as the fully qualified local hostname.
* Accept Unicode strings as SMTP TO addresses. Fixes #521270.Martin v. Löwis2002-02-241-1/+1
| | | | 2.2.1 candidate.
* The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.Martin v. Löwis2002-02-161-3/+1
| | | | | Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
* send(), ehlo(): Integrate patch #487310 by Fazal Majid. ConsistentlyBarry Warsaw2001-12-141-0/+2
| | | | | | | call self.close() just before raising SMTPServerDisconnected. This allows you to, e.g. reconnect after a server timeout. Merged from the 2.2c1 branch.
* SMTPError should be SMTPException; reported by Neal Norwitz.Fred Drake2001-10-131-2/+2
|
* Only close sockets if they have been created. Reported by Blake Winton.Martin v. Löwis2001-10-071-1/+3
|
* Whitespace normalization.Tim Peters2001-09-181-7/+7
|
* SF patch #461413 (Gerhard Häring): Add STARTTLS feature to smtplibGuido van Rossum2001-09-141-2/+54
| | | | | | | | | | | This patch adds the features from RFC 2487 (Secure SMTP over TLS) to the smtplib module: - A starttls() function - Wrapper classes that simulate enough of sockets and files for smtplib, but really wrap a SSLObject - reset the list of known SMTP extensions at each call of ehlo(). This should have been the case anyway.
* Add login() method and SMTPAuthenticationError exception. SF patchGuido van Rossum2001-09-111-3/+93
| | | | | | | | #460112 by Gerhard Haering. (With slight layout changes to conform to docstrings guidelines and to prevent a line longer than 78 characters. Also fixed some docstrings that Gerhard didn't touch.)
* Remove redundant importAndrew M. Kuchling2001-08-131-1/+1
|
* Initialize msg to avoid unbound locals.Martin v. Löwis2001-07-311-0/+1
|
* Untabify IPv6 changes.Martin v. Löwis2001-07-261-16/+16
|
* Patch #401196: Use getaddrinfo and AF_INET6 in TCP servers and clients.Martin v. Löwis2001-07-241-12/+20
|
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+5
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* Aha. We can remove he string import after all by using ValueError.Eric S. Raymond2001-02-091-2/+1
|
* Fixed a bug in the test jig.Eric S. Raymond2001-02-091-1/+1
|
* String method conversion.Eric S. Raymond2001-02-091-13/+13
|
* Whitespace normalization.Tim Peters2001-01-151-31/+31
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-6/+6
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* SMTP.connect(): If the socket.connect() raises a socket.error, be sureBarry Warsaw2000-11-081-1/+5
| | | | | to call self.close() to reclaim some file descriptors, the reraise the exception. Closes SF patch #102185 and SF bug #119833.
* Applied patch #101350, closing it.Barry Warsaw2000-09-011-1/+3
|
* Use socket.getfqdn() instead of defining make_fqdn().Fred Drake2000-08-161-27/+2
|
* Apply SF patch #101151, by Peter S-K, which fixes smtplib's passing of theThomas Wouters2000-08-151-13/+27
| | | | | | 'helo' and 'ehlo' message, and exports the 'make_fqdn' function. This function should be moved to socket.py, if that module ever gets a Python wrapper.
* add better algorithm to get fully qualified domain name for localhostPeter Schneider-Kamp2000-08-101-17/+21
| | | | | | | in smtplib.ehlo() and smtplib.helo(). closes patch #101103 closes bug #110935
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-2/+2
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Use TQSQ (triple quoted single quote) module docstring for betterBarry Warsaw2000-07-091-2/+2
| | | | font-locking. This complets the merge with Mailman's version.
* Fredrik Lundh:Guido van Rossum2000-03-281-1/+1
| | | | | This fixes a bunch of socket.connect(host, post) calls. Note that I haven't tested all modules -- I don't have enough servers here...
* Simple changes by Gerrit Holl - move author acknowledgements out ofGuido van Rossum2000-02-281-8/+8
| | | | docstrings into comments.