Re: smtplib and TLS

2005-06-21 Thread Jp Calderone
On 21 Jun 2005 08:39:02 -0700, Matthias Kluwe <[EMAIL PROTECTED]> wrote: >> From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid > >>> "Matthias Kluwe" <[EMAIL PROTECTED]> writes: >>> After getting a @gmail.com address, I recognized I had to use TLS in my >>> python scripts using smtplib in order to g

Re: smtplib and TLS

2005-06-21 Thread Tim Williams
- Original Message - From: "Matthias Kluwe" <[EMAIL PROTECTED]> > > Have you verified that its your end that is broken, not gmail's, do other > > servers give the same response ? > > No, I have not -- I should have, as I know now: Connecting, starttls, > login and sending mail works fin

Re: smtplib and TLS

2005-06-21 Thread Matthias Kluwe
> From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid >> "Matthias Kluwe" <[EMAIL PROTECTED]> writes: >> After getting a @gmail.com address, I recognized I had to use TLS in my >> python scripts using smtplib in order to get mail to the smtp.gmail.com >> server. >> [...] >> The server accepts and

Re: smtplib and TLS

2005-06-18 Thread Tim Williams
- Original Message - From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid > "Matthias Kluwe" <[EMAIL PROTECTED]> writes: > > Hmm. I tried > > > > server.sock.realsock.shutdown(2) > > before server.quit() with the result of > > I don't think that's exactly what you want. You need to send a

Re: smtplib and TLS

2005-06-18 Thread Paul Rubin
"Matthias Kluwe" <[EMAIL PROTECTED]> writes: > Hmm. I tried > > server.sock.realsock.shutdown(2) > before server.quit() with the result of I don't think that's exactly what you want. You need to send a specific TLS message BEFORE shutting down the socket, to tell the other end that the TLS conne

Re: smtplib and TLS

2005-06-18 Thread Matthias Kluwe
> "Matthias Kluwe" <[EMAIL PROTECTED]> 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 mes

Re: smtplib and TLS

2005-06-17 Thread Paul Rubin
"Matthias Kluwe" <[EMAIL PROTECTED]> 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

smtplib and TLS

2005-06-17 Thread Matthias Kluwe
Hi! After getting a @gmail.com address, I recognized I had to use TLS in my python scripts using smtplib in order to get mail to the smtp.gmail.com server. Things work well so far, apart from an unexpected error. Here's my sample code: import smtplib server = smtplib.SMTP('smtp.gmail.com', 587)