Unclear on argument passing to "sendmail'

Tim Williams tim at tdw.net
Mon Aug 21 18:26:14 EDT 2006


On 21/08/06, Tim Williams <tim at tdw.net> wrote:
> On 21/08/06, John Draper <lists at webcrunchers.com> wrote:

Sorry, there's an indentation error here

except smtplib.SMTPRecipientsRefused, x :  #all recips failed
   for recip in x.recipients:
       print recip
       server.quit()
       break

it should be

except smtplib.SMTPRecipientsRefused, x :  #all recips failed
   for recip in x.recipients:
       print recip  # will give the recip and the SMTP error too
   server.quit()
   break



More information about the Python-list mailing list