keystonejs / keystone-email

⚠️ Archived - Legacy email helper for KeystoneJS Apps
MIT License
29 stars 40 forks source link

Error when sending email with v1.0.1 #7

Open dronsfield opened 8 years ago

dronsfield commented 8 years ago

I get the error below when trying to send email with v1.0.1. Unsure how to solve.

I reverted to v1.0.0 and everything works fine.

TypeError: this.transport is not a function at <MY_PATH>\node_modules\keystone-email\lib\Email.js:111:8 at <MY_PATH>\node_modules\keystone-email\lib\Email.js:66:3 at Immediate._onImmediate (<MY_PATH>\node_modules\express-handlebars\lib\utils.js:26:13) at processImmediate [as _immediateCallback] (timers.js:383:17)

mxstbr commented 8 years ago

Are you passing in the transport?

new Email('template.pug', {
  transport: 'mailgun', // or 'mandrill' 
}).send();
dronsfield commented 8 years ago

Yep, using mandrill. Everything works fine with v1.0.0, emails are being sent.

On 23 Aug 2016 10:12 p.m., "Max Stoiber" notifications@github.com wrote:

Are you passing in the transport?

new Email('template.pug', { transport: 'mailgun', // or 'mandrill' }).send();

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/keystonejs/keystone-email/issues/7#issuecomment-241880456, or mute the thread https://github.com/notifications/unsubscribe-auth/AIHfcHDNCLQb4fKU10Dln3RM1ZQ7l4OQks5qi2JRgaJpZM4JrKQD .

mxstbr commented 8 years ago

Can you copy and paste the code? It's kind of hard to diagnose like this!