小编DDI*_*Guy的帖子

在HTML电子邮件中使用变量?

我正在使用此帖子发送使用Python发送电子邮件的信息

到目前为止,说明是完美的.我还有两件事要做:

  1. 在体内调用变量
  2. 添加附件

变量将是今天的日期.就是这个:

today = datetime.datetime.today ()
tday = today.strftime ("%m-%d-%Y")
Run Code Online (Sandbox Code Playgroud)

我知道使用mailx,您可以使用-a选项附加.

python html-email

1
推荐指数
1
解决办法
6287
查看次数

标签 统计

html-email ×1

python ×1