Skip to content

Commit

Permalink
Fix Cannot set property 'mailer' of undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano committed Jan 16, 2018
1 parent 87f2f7e commit 9510891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailer/transporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ if (opts && Object.keys(opts).length === 0) {

const transport = opts ?
nodemailer.createTransport(opts) :
nodemailer.createTransport()
nodemailer.createTransport({})

module.exports = transport

1 comment on commit 9510891

@franciclo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally! thanks!

Please sign in to comment.