我想在 Debian 和 Windows 上打开 Thunderbird,并附上新电子邮件的附件。
所以我想在这个线程中做同样的事情,但是发布的解决方案不起作用:
Python open email client with attachment
我和 user2686223 有同样的问题。该文件不会附加到邮件中。谁能帮我解决这个问题?
也许使用其他解决方案?
编辑:现在它是这样工作的:
import os
os.system("thunderbird -compose to='test@test.de',subject='subject',body='body',attachment='/path/to/file'")
最佳答案
使用命令行参数“-compose”启动 Thunderbird。 更多信息请访问 http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29
关于Python:打开 Thunderbird 以编写带有附件的新邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25698821/