const emailHelper = require('../../../helpers/email');

module.exports = async({ address, template, vars }) => {
  return await emailHelper.send({ email: address, template, vars });
};

const emailHelper = require('../../../helpers/email');

module.exports = async({ address, ...otherConfig }) => {
  return await emailHelper.send({ email: address, ...otherConfig });
};

Fix email sending to address
Fix email sending to address
