This is an example of using the SendGrid nodejs library.
Hack on the Sendgrid Node.JS example on Nitrous.IO in a matter of seconds:
git clone http://github.com/scottmotte/sendgrid-nodejs-example.git
cd sendgrid-nodejs-example
cp .env.example .env # change the values in .env
npm install
node sendgrid-nodejs-example.js
node smtp-nodejs-example.js