@corejam/notify
v0.0.8
Published
This package provides Email, SMS & Push notifications to your Corejam applications
Downloads
21
Readme
@corejam/notify
This package can be used to provide notification (mail, sms, push) functionality through the corejam servers context object.
For example in your resolver:
Mutation: {
myMutation: async (_obj: any, args: any, { notify }: MergedServerContext) => {
await notify.sendMail({to: "[email protected]"})
notify.sendSMS() //Coming soon
notify.pushNotification() //Coming soon
}
Please view the .env.sample for the correct env variables required for mail setup.
Currently we support the following mail transports:
AMAZON SES