Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Error when sending email with v1.0.1 #7

Open
dronsfield opened this issue Aug 23, 2016 · 3 comments
Open

Error when sending email with v1.0.1 #7

dronsfield opened this issue Aug 23, 2016 · 3 comments
Labels

Comments

@dronsfield
Copy link

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
Copy link
Contributor

mxstbr commented Aug 23, 2016

Are you passing in the transport?

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

@dronsfield
Copy link
Author

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

On 23 Aug 2016 10:12 p.m., "Max Stoiber" [email protected] 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
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIHfcHDNCLQb4fKU10Dln3RM1ZQ7l4OQks5qi2JRgaJpZM4JrKQD
.

@mxstbr
Copy link
Contributor

mxstbr commented Aug 24, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants