how to use smtp starttls() encryption?
Xu, C.S.
xucs007 at yahoo.com
Mon Oct 21 14:30:35 EDT 2002
Hi,
> Please upgrade to Python 2.2.2. If that's not possible, get a smtplib.py
> of Python 2.2.2 and use it instead.
I downloaded Python 2.2.2, compiled and installed. Now
starttls() generate problem:
> send: 'STARTTLS\r\n'
> reply: '220 OpenSSL/0.9.5beta go ahead\r\n'
> reply: retcode (220); Msg: OpenSSL/0.9.5beta go ahead
> Traceback (most recent call last):
> File "aa", line 12, in ?
> server.starttls()
> File "/usr/local/lib/python2.2/smtplib.py", line 591, in starttls
> sslobj = socket.ssl(self.sock, keyfile, certfile)
> AttributeError: 'module' object has no attribute 'ssl'
Any help?
More information about the Python-list
mailing list