For future googlers: it turns out in my case the call to .starttls()
was not needed: I removed it and everything worked. Dunno why I was
there in the first place, the original code was written by somebody
else.
--
http://mail.python.org/mailman/listinfo/python-list
Michele Simionato writes:
> Notice that this not a problem of the SMTP server, since with Python
> 2.4 the script is connecting to the SMTP server
Um, my guess is that 2.4 didn't attempt to use TLS at all, and your 2.7
installation doesn't have the TLS libraries installed or they're not
configure
error:
Traceback (most recent call last):
File "y.py", line 5, in
smtpO.starttls()
File "/home/rcare/lib/python2.7/smtplib.py", line 614, in starttls
raise SMTPException("STARTTLS extension not supported by server.")
smtplib.SMTPException: STARTTLS ext