Re: smtplib starttls gmail example - comments?

2007-01-25 Thread py
Excellent imput! I learned - no need for trailing . and i was doing it wrong anyway. - all those extra trys were redundant. - the trailing comma functionality in print. - the extra ehlo is an rfc req. Thanks all. -dave -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread Tim Williams
On 24/01/07, py [EMAIL PROTECTED] wrote: I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. for instance, do i understand correctly that i cant have a try: else: without an intervening except:? -dave

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
On 1/24/07, Tim Williams [EMAIL PROTECTED] wrote: On 24/01/07, py [EMAIL PROTECTED] wrote: I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. for instance, do i understand correctly that i cant have a try: else: without an

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread Tim Williams
On 24/01/07, BJ Swope [EMAIL PROTECTED] wrote: On 1/24/07, Tim Williams [EMAIL PROTECTED] wrote: On 24/01/07, py [EMAIL PROTECTED] wrote: I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. for instance, do i understand

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread BJ Swope
Sweet! -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib starttls gmail example - comments?

2007-01-24 Thread Gabriel Genellina
At Wednesday 24/1/2007 09:12, BJ Swope wrote: Both examples have included the cardinal sin in smtp... They both send the message text followed by new line dot new line. The smtp protocol specifically mentions CRLF dot CRLF. Please please please use \r\n.\r\n in your code... No. The SMTP

RE: smtplib starttls gmail example - comments?

2007-01-23 Thread py
I would love for anybody to comment on this code with regard to redundancy/efficiency/wordiness or whatever else. for instance, do i understand correctly that i cant have a try: else: without an intervening except:? -dave stdout.write(calling smtp server...) try: