<html>
<body>
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:<br><br>
<dl>
<dd><i>exception </i><tt>smtplib.SMTPRecipientsRefused<br><br>
</tt>
<dd>All recipient addresses refused. The errors for each recipient are
accessible through the attribute <tt>recipients</tt>, which is a
dictionary of exactly the same sort as
<a href="https://docs.python.org/3/library/smtplib.html#smtplib.SMTP.sendmail">
<tt>SMTP.sendmail()</a></tt> returns.<br><br>
</dl>But where is the "recipients" attribute?  More
specifically, what is it an attribute of?<br><br>
My code looks something like this:<br><br>
<x-tab>        </x-tab>server =
smtplib.SMTP(name,port)<br>
         server.login(userid,
password)<br>
<x-tab>        </x-tab>try:<br>
            
server.sendmail(fromline, tolist, msg) <br>
          except
smtplib.SMTPRecipientsRefused:<br>
             
(here's where I need to access the recipients attribute)<br><br>
I have tried server.recipients, but get an attribute error (no such
attribute).  I've also tried:<br><br>
         
smtplib.recipients<br>
         
smtplib.SMTPRecipientsRefused.recipients<br><br>
and all these indicate that there is no attribute
"recipients".<br><br>
So where is that "recipients" attribute?  <br><br>
Thanks.<br><br>
Hobie Audet</body>
</html>