This is an example of using nodejs to generate applescript for sending out emails.
node example.js
Will output the applescript to console. On a mac with microsoft outlook configured and applescript one can create an applescript file and run it. e.g.
osascript out.osascript
This will send an email that looks like email.txt This script is handy if you have a list of emails thats somewhat long