Python - how to change email text typeface

Viewed 14382

I'm writing an app that generates full report and it's summary, and sends them via email. A summary is sent as text in email, and a full report is sent as attachement. I found an example (link) that works great, but I would need to set font's typeface of an email message as monospaced (e.g. 'Courier New').

Any idea how to do this?

Thanks in advance.

3 Answers
server = smtplib.SMTP("smtp.gmail.com", 587)
server.login("email", "password")
server.sendmail("email", "email", "message")
server.quit()
Related