smtplib and SSL

Michael Prager Mike.Prager at noaa.gov
Tue Jun 3 18:24:08 EDT 2003


I have looked through Google groups and am not sure if this
question has been answered before (by "Windows Python does not
yet include SSL support.")

I am trying to write a simple Python script to log into an ESMTP
server and send email.  However the statement

server.starttls() 

leads to an error message, as in this incomplete screen dump:


send: 'STARTTLS\r\n'
reply: '220 Ready to start TLS\r\n'
reply: retcode (220); Msg: Ready to start TLS
Traceback (most recent call last):
  File "E:\MHPutil\sendmsg\send2.py", line 40, in ?
    serv.starttls()
  File "D:\python22\lib\smtplib.py", line 560, in starttls
    sslobj = socket.ssl(self.sock, keyfile, certfile)
AttributeError: 'module' object has no attribute 'ssl'


Is there a precompiled version of Python available with SSL
support in the library?  If so, where?

I'm not sure from the Python.org web page whether this might
work with the beta of 2.3.

Or is that not the problem?
-- 
Mike Prager
NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.




More information about the Python-list mailing list