- 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.
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: '[email protected]',
from: '[email protected]',
subject: 'I really like sending emails with Sendgrid!',
text: 'Sendgrid is totally awesome for sending emails!'
});
Thanks go out to @scottmotte for his help in figuring out how to do this without using the NPM module.