Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Thunderbird command line switches

  • 4 uphendule
  • 1 inale nkinga
  • 1 view
  • Igcine ukuphendulwa ngu jjjj19

more options

Hi, I want to use Windows Task Scheduler to send command line emails via Thunderbird.

I have found only: thunderbird -compose "attachment='C:\first.txt,C:\second.txt'"

This works. But I also want to include email to, subject, text body and send.

I have tried options like Blat. Blat works but not with gmail.com as they block it. So with Thunderbird installed locally I may be able to work around the new gmail restrictions.

Many thanks.

Hi, I want to use Windows Task Scheduler to send command line emails via Thunderbird. I have found only: thunderbird -compose "attachment='C:\first.txt,C:\second.txt'" This works. But I also want to include email to, subject, text body and send. I have tried options like Blat. Blat works but not with gmail.com as they block it. So with Thunderbird installed locally I may be able to work around the new gmail restrictions. Many thanks.

Isisombululo esikhethiwe

I strongly suggest you use a utility designed for this purpose. Thunderbird isn't, because it will still launch the compose window so that you can click Send manually. See https://stackoverflow.com/questions/45588952/how-can-i-compose-and-send-email-in-thunderbird-from-commandline and https://support.mozilla.org/en-US/questions/1144493

Several options are featured here https://www.raymond.cc/blog/sending-email-using-command-line-useful-for-downtime-alert-notification/

Note that the Powershell cmdlet is now obsolete. SwithMail is my favourite of those tools, but you'll have to use an app password for sending via Gmail.

Funda le mpendulo ngokuhambisana nalesi sihloko 👍 0

All Replies (4)

more options

Isisombululo Esikhethiwe

I strongly suggest you use a utility designed for this purpose. Thunderbird isn't, because it will still launch the compose window so that you can click Send manually. See https://stackoverflow.com/questions/45588952/how-can-i-compose-and-send-email-in-thunderbird-from-commandline and https://support.mozilla.org/en-US/questions/1144493

Several options are featured here https://www.raymond.cc/blog/sending-email-using-command-line-useful-for-downtime-alert-notification/

Note that the Powershell cmdlet is now obsolete. SwithMail is my favourite of those tools, but you'll have to use an app password for sending via Gmail.

more options

Many thanks Stans. I have looked at Swithmail. How do I get an App password for gmail?

more options
more options

Thanks Stan, Much appreciated. Regards, J