siefkenj / MailMergeP

Mail Merge P add-on for Thunderbird
GNU General Public License v3.0
16 stars 3 forks source link

send mail without GUI #62

Open vks2 opened 5 hours ago

vks2 commented 5 hours ago

Thanks for wonderfull project. BTW, it's almost first and one TB ext that uses node and also you use a very interesting architecture via iframe that is also not common. so thanks anyway. could you pls comment, how the project can be updated if i don't need a gui window, and should run the app as a service (constantly check for excels in folder and if there's some new excel send a standart mails for all template parts in it). what's the way of doing it without hard job of refactoring all elements of iframe service? thanks much

siefkenj commented 5 hours ago

That's a good question. I don't know how to do that at the moment. Last I checked, TB did not have an API for extensions to directly send email. Instead I must create a new "Compose" window, put the contents in there, and then trigger the "Send" action.

I know the TB programmers were working on an API for extensions to send email, though. Maybe it's been updated already :-).

vks2 commented 5 hours ago

thanks for explanation. indeed, it's pretty strange. and that's why the button as it compose mail level window. if i just need node, should i implement iframe architecture or there's a simplier way for achiving that?

siefkenj commented 5 hours ago

So, to be clear, you want a fully-headless way to send emails from a spreadsheet, or you want a GUI to set up the spreadsheet and the template, but you don't want TB to be running?

vks2 commented 5 hours ago

I want to make some kind of service in node.js out of running thunderbird that looks up for some messaging tasks setted out in some known folder. without any buttons pressed etc... (or with only 1 button pressed from compose message tab). thank you for your kind help