This node module allows you to quickly and more easily generate SendGrid X-SMTPAPI headers.
All updates to this module is documented in our CHANGELOG.
- Node.js version 0.10, 0.12 or 4
- The SendGrid service, starting at the free level
Update your environment with your SendGrid credentials. (if you will be sending via nodemailer or other SMTP transport)
echo "export SENDGRID_USERNAME='YOUR_USERNAME'" > sendgrid.envecho "export SENDGRID_PASSWORD='YOUR_PASSWORD'" >> sendgrid.envecho "sendgrid.env" >> .gitignoresource ./sendgrid.env
Add the following to your
Install smtpapi-nodejs and its dependencies:
- Please see package.json
var smtpapi = ;var header = ;header;header;console;
If you are intersted in the future direction of this project, please take a look at our milestones. We would love to hear your feedback.
How to Contribute
We encourage contribution to our projects, please see our CONTRIBUTING guide for details.
smtpapi-nodejs is guided and supported by the SendGrid Developer Experience Team.
smtpapi-nodejs is maintained and funded by SendGrid, Inc. The names and logos for smtpapi-nodejs are trademarks of SendGrid, Inc.