I have a app with a kind of rest api that I\'m using to send emails . However it currently sends only text email so I need to know how to modify it and make it send html . Below
you can use the html field of EmailMessage class
message = mail.EmailMessage(sender=emailFrom,subject=emailSubject) message.to = emailTo message.body = emailBody message.html = emailHtml message.send()