Though probably not critical now, what do you think about using Jinja templates to build the email body instead of doing so manually?  (We'd still need MIMEText of course)