Skip to content
A meteorite package for sending emails easily using Sendgrid
JavaScript
Find file
Latest commit 302373c Sep 30, 2013 @DavidBrear Changed italics to bold
Failed to load latest commit information.
.gitignore
README.md
package.js initial commit Sep 30, 2013
sendgrid.js
smart.json

README.md

Sendgrid for Meteor

A meteorite package for sending emails easily using Sendgrid.

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

  • Visit Sendgrid and create an account.
  • Navigate to Account Settings and look at the lower right corner for Manage Multiple User Credentials and click it.
  • Click Add New Credential
  • Create a name and a password (this will be your sendgrid username and password)
  • Select API and Mail checkboxes
  • Click Create Credential
  • Fill in the usage below.

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.

Something went wrong with that request. Please try again.