mikermcneil / machinepack-mandrill

Node.js machines for use with the Mandrill API
http://node-machine.org/machinepack-mandrill
5 stars 7 forks source link

updated send-template-email to include an array of recipients and glo… #5

Open cludden opened 9 years ago

cludden commented 9 years ago

Updated send-template-email.js to use an array of recipients instead of single recipient, and also to allow global_merge_vars passed as inputs.content, that allows for non string values (arrays, objects, etc).

Perhaps, to keep the interface unified and remain backwards compatible, I should update all methods to allow for both a single email (inputs.toEmail, inputs.toName) and an override input (inputs.to).

Thoughts?