Open dronsfield opened 8 years ago
Are you passing in the transport?
new Email('template.pug', {
transport: 'mailgun', // or 'mandrill'
}).send();
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 .
Can you copy and paste the code? It's kind of hard to diagnose like this!
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)