我一直在用python为thunderbird编写电子邮件,但似乎无法将回复设置为field。我试过以下几种不同的方法。 我没有得到任何错误与这个方法,它组成只是罚款它只是不会填写“答复”字段
''
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()
''
不幸的是,这是不可能的。您可能需要提交一个bug here。目前只有这些参数可用:
相关问题 更多 >
编程相关推荐