Fw: sendmail error

2010-08-31 Thread sandric ionut
- Forwarded Message From: sandric ionut sandricio...@yahoo.com To: Dave Angel da...@ieee.org Sent: Tue, August 31, 2010 3:56:40 PM Subject: Re: sendmail error From: Dave Angel da...@ieee.org To: sandric ionut sandricio...@yahoo.com Cc: Python

Re: Fw: sendmail error

2010-08-31 Thread Alexander Kapps
sandric ionut wrote: Three things: When quoting code, do it exactly, and without wordwrap in your mail program. There are so many typos in that code sample that it's useless, presumably because you didn't use copy/paste The code was COPY and PASTE - presume wrong When quoting an

Re: Fw: sendmail error

2010-08-31 Thread Chris Withers
Alexander Kapps wrote: Instead you want something like: except smtplib.SMTPException, msg print eroare: + msg Err, that's still concatenating a string and an exception object. What *would* work is: except smtplib.SMTPException, msg print eroare: + str(msg) ...not that it's

Re: Fw: sendmail error

2010-08-31 Thread Alexander Kapps
Chris Withers wrote: Alexander Kapps wrote: Instead you want something like: except smtplib.SMTPException, msg print eroare: + msg Err, that's still concatenating a string and an exception object. OUCH! What a stupid error. Thanks for correction. :-) What *would* work is: except