how to use smtp starttls() encryption?
Martin v. Loewis
martin at v.loewis.de
Sat Oct 12 18:41:47 EDT 2002
xucs007 at yahoo.com (Xu, C.S.) writes:
> > AttributeError: SSLFakeSocket instance has no attribute 'sendall'
>
> Any suggestions?
That's a bug in smtplib.py, which will be fixed in 2.2.2. Please apply
the patch below.
Regards,
Martin
Index: smtplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/smtplib.py,v
retrieving revision 1.46.4.2
retrieving revision 1.46.4.3
diff -u -r1.46.4.2 -r1.46.4.3
--- smtplib.py 25 Feb 2002 10:52:43 -0000 1.46.4.2
+++ smtplib.py 2 Jun 2002 12:32:04 -0000 1.46.4.3
@@ -137,6 +137,8 @@
self.sslobj.write(str)
return len(str)
+ sendall = send
+
def close(self):
self.realsock.close()
More information about the Python-list
mailing list