Python MIMEText formatting
email, formatting, python
Solution
MIMEText supports html format. You can do this:
message="""\
<html>
<head></head>
<body>
<b>"""This is bold"""</b>
<i>"""This is italic"""</i>
</body>
</html>
"""
MIMEText(message,'html')
Problem
I'm sending emails via python using MIMEText. A crude short example: ``` message = MIMEText('Hi,\n\nYour taxes are due.\n\nTODAY.\n\nBest,\n\nIRS.') ``` What if I want TODAY to be italicized and/or bolded in the email?