title: Python 3 smtplib send with unicode characters
body: <p>I'm having a problem emailing unicode characters using smtplib in Python 3.  This fails in 3.1.1, but works in 2.5.4:</p>
  
  <pre><code>  import smtplib
    from email.mime.text import MIMEText
  
    sender = to = 'ABC@DEF.com'
    server = 'smtp.DEF.com'
    msg = MIMEText('€10')
    msg['Subject'] = 'Hello'
    msg['From'] = sender
    msg['To'] = to
    s = smtplib.SMTP(server)
    s.sendmail(sender, [to], msg.as_string())
    s.quit()
  </code></pre>
  
  <p>I tried an example from the docs, which also failed.  <a href="http://docs.python.org/3.1/library/email-examples.html" rel="nofollow noreferrer">http://docs.python.org/3.1/library/email-examples.html</a>, the Send the contents of a directory as a MIME message example</p>
  
  <p>Any suggestions?</p>