Python:打开 Thunderbird 以编写带有附件的新邮件

标签 python email cross-platform email-attachments thunderbird

我想在 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/

相关文章:

python - 您可以动态地向对象添加属性吗?

python - 字符串 "contains"- Pandas MultiIndex 上的切片

ruby-on-rails - 具有不同布局的 Rails 邮件程序

objective-c - Cocotron 链接错误

javascript - 跨平台,跨浏览器的方式来播放Java脚本中的声音?

android - 跨平台应用程序开发堆栈来同时解决 pc 和移动?

python - 如何更改 pygame 窗口顶部栏的颜色?

python - 如何根据上下文更改 Blender 2.63 中的运算符(operator)标签?

ruby-on-rails - 如何从 ActionMailer 发送已签名的电子邮件?

php mail() 同时保存数据到MYSQL