如何使用python将html发送到gmail?

问题描述

我正在尝试使用 python 向 gmail 发送电子邮件。我正在添加 html 内容和消息发送。

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

但它不能如我所愿。 Html 标记替换为一些符号。enter image description here 我该如何解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)