const nodemailer = require('nodemailer')
const config = require('../config')

let opts = config.get('mailer.service')
  ? config.get('mailer')
  : config.get('nodemailer')

// Use directTransport when nothing is configured
if (opts && Object.keys(opts).length === 0) {
  opts = undefined
}

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

module.exports = transport

@@ -375,16 +375,18 @@
 ansport(
+%7B%7D
 )%0A%0Amodul

Fix Cannot set property 'mailer' of undefined error