title: Is it possible to iterate a dict in python for use in a html email
body: <p>I am trying to send a email notification, and I would like to send dynamic data(for testing purposes my dictionary is static). How ever when I iterate trough my dictionary only one value shows up in the email. Any help would be greatly appreciated!!!</p>
  
  <h1>Here is my email.py</h1>
  
  <pre><code>import smtplib
  
  from email.mime.multipart import MIMEMultipart
  from email.mime.text import MIMEText
  
  # me == my email address
  # you == recipient's email address
  me = "test_email@mydomain.com"
  you = "test_email_user@mydomain.com"
  
  msg = MIMEMultipart('alternative')
  msg['Subject'] = "Link"
  msg['From'] = me
  msg['To'] = you
  
  justin = "Justin"
  
  p = {u'Contracts that need signed by: Justin': [[u'/contracts/26203', u'/contracts/26194', u'/contracts/26199', u'/contracts/26173']]}
  
  
  for a in p.keys():
    b = p['Contracts that need signed by: Justin']
    for c, d in enumerate(b):
      e = d
      for f in e:
        html = """\
        &lt;html&gt;
          &lt;head&gt;&lt;/head&gt;
          &lt;body&gt;
            &lt;p&gt;Contracts that need signed by """ + justin  + """&lt;br&gt;
               How are you?&lt;br&gt;
               Here is the &lt;a href="http://contract.mydomain.com/""" + f + """"&gt;link&lt;/a&gt; you wanted.
            &lt;/p&gt;
          &lt;/body&gt;
        &lt;/html&gt;
        """
  
  part2 = MIMEText(html, 'html')
  
  msg.attach(part2)
  
  s = smtplib.SMTP('localhost')
  s.sendmail(me, you, msg.as_string())
  s.quit()
  </code></pre>
  
  <h1>Here is the email I get ^</h1>
  
  <pre><code>Contracts that need signed by Justin
  How are you?
  Here is the link you wanted.
  </code></pre>
  
  <h1>Which I want it to look like this</h1>
  
  <pre><code>Contracts that need signed by Justin
  How are you?
  #EACH OF THE LINKS WOULD BE THE NEXT VALUE IN MY DICTONARY. 
  Here is the link1 you wanted.
  Here is the link2 you wanted.
  Here is the link3 you wanted.
  Here is the link4 you wanted. 
  </code></pre>