I would like to open Thunderbird on Debian AND Windows with an attached file for a new email.
So I would like to do the same as in this thread but the posted solutio
Using the information from mozillazine listed above, I was able to get this to work with Python 2.7 on Windows 7
import subprocess
tbirdPath = r'c:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe'
to = 'recipiant@example.com'
subject = 'Hello'
body = 'Header
This is the body
'
composeCommand = 'format=html,to={},subject={},body={}'.format(to, subject, body)
subprocess.Popen([tbirdPath, '-compose', composeCommand])