【问题标题】:compose Thunderbird with specified reply-to in python在 python 中用指定的回复撰写 Thunderbird
【发布时间】:2019-11-10 17:27:49
【问题描述】:

我一直在用 python 为 Thunderbird 撰写电子邮件,但我似乎无法设置回复字段。我已经尝试了以下几种变化。 这种方法我没有收到任何错误,它的组合很好,只是不会填写“回复”字段。

'''

def composeEmail():
    import subprocess
    tbirdPath = r'c:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe'
    to = 'sendto@somewhere.com'
    subject = 'This is my subject'
    mBody = 'This is the contents'
    replyTo = 'replies@somewhere.com'

    body = ('<html><body><h1></h1>%s<br></body></html>' % mBody)
    composeCommand = 'format=html,to={},reply-to={},subject={},body={}' .format(to, replyTo, subject, body)
    subprocess.Popen([tbirdPath, '-compose', composeCommand])
composeEmail()

'''

【问题讨论】:

    标签: python email thunderbird reply


    【解决方案1】:

    很遗憾,这是不可能的。您可能需要提交错误here。目前只有这些参数可用:

    https://hg.mozilla.org/comm-central/file/tip/mailnews/compose/src/nsMsgComposeService.cpp#l1356

    【讨论】:

      猜你喜欢
      • 2021-03-17
      • 1970-01-01
      • 2010-10-14
      • 2018-01-17
      • 1970-01-01
      • 1970-01-01
      • 2018-07-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多