Simple integration of sparkpost mail with deployd
npm i dpd-sparkpost-mail --save
Go to your dashboard and create SparkpostMail resource and enter the requested info To send an email just call the post method of the mail resource you have created
delay_minutes and delay_hours are optional, the defautl value for this is 0. Set that values only if you want do schedule/delay the email delivery.
You can specify a template id and substitution data instead content
substitution_data field is optional
Change sparkpostmail with your resource name
Templates integration coming for the next release, it's already coded, just need a few tweaks, feel free to modify it to get it work with templates.
For any help post an issue or write to email@example.com