Home

Awesome

Sendgrid for Meteor

A meteorite package for sending emails easily using Sendgrid.

Setup Sendgrid (if you haven't done so already)

Usage

in server/sendgrid_config.js add:

  Meteor.startup(function(){
    Meteor.Sendgrid.config({
      username: 'YOUR_SENDGRID_USERNAME',
      password: 'YOUR_SENDGRID_PASSWORD'
    });
  });

Anywhere you want to send an email:


  Meteor.Sendgrid.send({
    to: 'whoItsTo@theDomain.com',
    from: 'no-reply@where-ever.com',
    subject: 'I really like sending emails with Sendgrid!',
    text: 'Sendgrid is totally awesome for sending emails!'
  });

Special Thanks

Thanks go out to @scottmotte for his help in figuring out how to do this without using the NPM module.