Following is the piece of code that I\'ve used to send both text and HTML in an email. Is there a a better way?
from email.mime.text import MIMEText from emai