I'm sending email through below code:
msg = MIMEText(u'<a href="www.google.com">abc</a>')
msg['Subject'] = 'subject'
msg['From'] = 'xxx'
msg['To'] = 'xxx'
s = smtplib.SMTP(xxx, 25)
s.sendmail(xxx, xxx, msg.as_string())
what I want to receive is
what I actually received is:
<a href="www.google.com">abc</a>
You should specify
'html'
as the subtype -Without specifying the subtype separately , the subtype defaults to
'plain'
(plain-text). From documentations -(Emphasis mine) .
This worked for me :)
O/P: Congratulations! We've successfully created account.
Go to the page: click here
Thanks,
XYZ Team.