I tried something from here: Python: Open Thunderbird to write new mail with attached file This code snippet opens a new email to be written in Thunderbird, but it doesn't include any of the specifications from the code below (email address, subject, body, attachment), it's just a blank new email:
import os
os.system("/Applications/Thunderbird.app/Contents/MacOS/thunderbird -compose
to='abc@abc.com',subject='hello',body='attached is txt
file',attachment='Users/Username/Desktop/test.txt'")
How do I write it so that the arguments I passed it are included?
UPDATE: Ok, it is mostly working with this format, however the attachment is not getting attached:
os.system("/Applications/Thunderbird.app/Contents/MacOS/thunderbird -compose
'to=abc@abc.edu','subject=this subject','body=this is the
body','attachment=/Users/Username/Desktop/test.txt'")
Any ideas on how to change the attachment format so that it successfully attaches? It's not throwing any errors with this format, it's simply not attaching the file.
UPDATE: it's working now, I missed one slash, the above format now works for me.