How to send html to gmail with python?

  gmail, html, python-3.x

I’m trying to send email to gmail with python. I’m adding html content and message sends.

        content = Content('text/html', params.get('body'))
        message.add_content(content)

But it doesn’t work as I want. Html tags replaces by some symbols.enter image description here How can I fix it?

Source: Python-3x Questions

LEAVE A COMMENT