notifme / notifme-sdk

A Node.js library to send all kinds of transactional notifications.
https://notifme.github.io/www/
MIT License
1.94k stars 149 forks source link

add support for sendgrid using nodemailer and nodemailer-sendgrid-tra… #12

Closed mjsisley closed 7 years ago

mjsisley commented 7 years ago

Address #7 This adds support for sendgrid. It was tested manually and works for basic message sending.

It makes use of this: https://sendgrid.com/blog/sending-email-nodemailer-sendgrid/

This was the quickest to implement... it is not the ideal method as it adds 1.1mb raw (according to vscode import cost) and sendgrid no longer supports https://github.com/sendgrid/nodemailer-sendgrid-transport.

An ideal method would use node-fetch and this API: https://sendgrid.com/docs/API_Reference/api_v3.html

mjsisley commented 7 years ago

(Also add a yarn.lock file and lists vscode config files in .gitignore)

mjsisley commented 7 years ago

Thanks!