Merge branch 'master' of github.com:andris9/mailtrain

This commit is contained in:
Andris Reinman 2016-09-09 13:55:47 +03:00
commit 89715c56fc
5 changed files with 52 additions and 8 deletions

View file

@ -214,6 +214,10 @@ module.exports.addConfirmation = (list, email, optInIp, data, callback) => {
}
setImmediate(() => {
if (data._skip) {
log.info('Subscription', 'Confirmation message for %s marked to be skipped (%s)', email, JSON.stringify(data));
return;
}
mailer.sendMail({
from: {