Example setup for using Mandrill to send emails in Meteor
Steps:
- From command-line run 'npm init', then 'npm install'.
- To generate the inlined HTML file, run 'grunt'. It will watch for changes.
- Signup for a mandrill free account and create an API key.
- Add the "email-template-INLINED.html" file to Mandrill as an Outgoing Template called "email-template".
- Create a new Meteor App using 'meteor create app'.
- Add the Wylio:Mandrill package: 'meteor add wylio:mandrill'.
- Move the "sendEmailMandrill.js" file into the meteor app folder and add your Mandrill info.
- Run your meteor app and you should successfully send an email through Mandrill!
Sending Meteor Accounts Emails:
- Add the "email-confirm-INLINED.html" file to Mandrill as an Outgoing Template called "email-confirm".
- Add accounts to the meteor app: 'meteor add accounts-ui accounts-password'.
- Add '{{> loginButtons}}' to the body of your app.html file.
- Move the "sendAcountEmailMandrill.js" file into the meteor app folder.
- When a new user signs up they should receive a confirmation email using your template!