[Tutor] SMTPLIB Exception Object
Hobie.Audet at comcast.net
Wed Apr 23 05:35:18 CEST 2014
I am using Python 3.3 and smtplib to generate and send some
E-mail. I am trying to figure out how to handle some exceptions, but
some of the documentation has me confused. Specifically, the
documentation on the SMTPRecipientsRefused exception says:
All recipient addresses refused. The errors for each recipient are
accessible through the attribute recipients, which is a dictionary of
exactly the same sort as
But where is the "recipients" attribute? More specifically, what is
it an attribute of?
My code looks something like this:
server = smtplib.SMTP(name,port)
server.sendmail(fromline, tolist, msg)
(here's where I need to access the recipients attribute)
I have tried server.recipients, but get an attribute error (no such
attribute). I've also tried:
and all these indicate that there is no attribute "recipients".
So where is that "recipients" attribute?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor