Permalink
Browse files

Export send method from email module so script can use it

  • Loading branch information...
davidmerfield committed Jan 10, 2019
1 parent a9d4618 commit 568771f5cd966c68f5a9385de805c4b2090af1d2
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/helper/email/index.js
@@ -138,7 +138,7 @@ function send(locals, messageFile, to, callback) {
console.log("Email not sent in development environment:", email);
return callback();
}

mailgun.messages().send(email, function(err, body) {
if (err) {
console.log("Error: Mailgun failed to send transactional email:", err);
@@ -165,4 +165,6 @@ for (var i in MESSAGES) {
);
}

exports.send = send;

module.exports = exports;

0 comments on commit 568771f

Please sign in to comment.