搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I let a script send a message regardless of thunderbird alreadey running or not?

  • 3 回覆
  • 1 有這個問題
  • 56 次檢視
  • 最近回覆由 tpollak

more options

This is on Linux. croon is used to execute a script. This script shall use Thunderbird to send an email. How shall I call Thunderbird to provide recipient and data and send the message regardless of Thunderbird already running or not?

This is on Linux. croon is used to execute a script. This script shall use Thunderbird to send an email. How shall I call Thunderbird to provide recipient and data and send the message regardless of Thunderbird already running or not?

被選擇的解決方法

Thunderbird is a poor match to your requirements.

While you can build a message, address it and add attachments via the command line, you can't actually tell Thunderbird to send it.

http://kb.mozillazine.org/Command_line_arguments_(Thunderbird)

從原來的回覆中察看解決方案 👍 1

所有回覆 (3)

more options

選擇的解決方法

Thunderbird is a poor match to your requirements.

While you can build a message, address it and add attachments via the command line, you can't actually tell Thunderbird to send it.

http://kb.mozillazine.org/Command_line_arguments_(Thunderbird)

more options

Trying to use Thunderbird for this sounds like a silly idea to me. You can achieve this by using CLI commands. Google is your friend.

more options

Though these answers correctly describe Thunderbird's capabilities they do not solve my problem. Yes, I googled and it seems that mutt is nearest a solution. Though I have not been able to make it work yet.