Wylio / meteor-mandrill

Meteor package for sending email via Mandrill
https://atmospherejs.com/wylio/mandrill
32 stars 8 forks source link

TypeError: Cannot call method 'send' of undefined #15

Closed bwobst closed 8 years ago

bwobst commented 8 years ago

I'm getting the error TypeError: Cannot call method 'send' of undefined when I try to use this plugin. Github isn't letting me upload the zip, so attached is the one JS file needed to repro the error.

To repro:

  1. Start a new meteor app.
  2. Run meteor update
  3. Run meteor add email
  4. Run meteor add wylio:meteor-mandrill
  5. Add the attached JS to the app. mandrill.js.txt
  6. Run meteor
bwobst commented 8 years ago

I added Mandrill.config({...}) and process.env.MAIL_URL to the Meteor.startup({...}) block which broke it. Moving those two outside that block got it working.