I\'m sending email through below code:
msg = MIMEText(u\'abc\')
msg[\'Subject\'] = \'subject\'
msg[\'From\'] = \'x
This worked for me :)
email_body = """
Congratulations! We've successfully created account.
Go to the page: click here
Thanks,
XYZ Team.
"""
msg = MIMEText(email_body ,'html')
O/P: Congratulations! We've successfully created account.
Go to the page: click here
Thanks,
XYZ Team.