MozillaZine

Automatically send message from batch command line

User Help for Mozilla Thunderbird
angbob
 
Posts: 50
Joined: June 11th, 2006, 7:29 pm
Location: New Hampshire, I think

Post Posted September 1st, 2017, 8:18 am

Using Windows 7
Thunderbird 52.3.0

This command brings up a Thunderbird "write" window:

start /b thunderbird.exe -compose "to='XXX@gmail.com',subject='Message Subject',preselectid='YYY@gmail.com',body='Message Body'"

To send the message, I have to click on Send.

Is there a way for a batch script to get Thunderbird to send the message without displaying the "write" window, and hence without requiring a click on Send?

morat
 
Posts: 2491
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 1st, 2017, 8:43 am

You can generate the email from the command line, but Thunderbird still requires the send button to be clicked.

Similar thread: viewtopic.php?f=39&t=3025179

BruceAWittmeier

User avatar
 
Posts: 2625
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Post Posted September 1st, 2017, 8:45 am

You might try something like this:

echo y | start /b mail.exe -compose "to='xxx@gmail.com',subject='Message Subject',preselectid='xxx@gmail.com',body='Message Body'"


Some additional information:
http://www.makeuseof.com/tag/3-quick-wa ... our-inbox/
~ I'm only here to Pay it Forward. ~

"I often take a very long windy road to my destination. When I arrive I often wonder how I missed the shortcut".

Return to Thunderbird Support


Who is online

Users browsing this forum: No registered users and 8 guests