相关疑难解决方法(0)

使用Python发送HTML电子邮件

如何使用Python在电子邮件中发送HTML内容?我可以发送简单的文字.

python email html-email

243
推荐指数
8
解决办法
30万
查看次数

Python中的Python电子邮件中的Python变量

如何将变量插入到我用python发送的html电子邮件中?我想要发送的变量是code.以下是我到目前为止的情况.

text = "We Says Thanks!"
html = """\
<html>
  <head></head>
  <body>
    <p>Thank you for being a loyal customer.<br>
       Here is your unique code to unlock exclusive content:<br>
       <br><br><h1><% print code %></h1><br>
       <img src="http://domain.com/footer.jpg">
    </p>
  </body>
</html>
"""
Run Code Online (Sandbox Code Playgroud)

python email html-email smtplib

10
推荐指数
2
解决办法
2万
查看次数

标签 统计

email ×2

html-email ×2

python ×2

smtplib ×1