smtplib and TLS

Paul Rubin http
Fri Jun 17 21:34:58 CEST 2005

"Matthias Kluwe" <mkluwe at> writes:
> The server accepts and delivers my messages, but the last command
> raises
> socket.sslerror: (8, 'EOF occurred in violation of protocol')
> Did I miss something? Any hint is welcome.

Looks like the module didn't send an TLS Close Notify message before
closing the socket.  I don't see anything in the docs about how to
send one from smtplib or socket, though.

More information about the Python-list mailing list