Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

update

  • Loading branch information...
andris9 committed Sep 3, 2018
1 parent 7c77c8a commit b61707ed736a3dc17d06fabf7a867eae5c152084
Showing with 5 additions and 1 deletion.
  1. +1 −1 config/default.js
  2. +4 −0 lib/mail.js
@@ -56,7 +56,7 @@ module.exports = {
smtp: {
direct: true,
logger: true,
debug: true
debug: false

// or try to send mail using sendmail binary
//sendmail: true,
@@ -54,6 +54,7 @@ function sendInvitation(req, ticket) {
transport.sendMail(mailOptions, err => {
if (err) {
log.error('SMTP', 'Failed sending account ticket %s mail to %s, %s', ticket._id, ticket.address, err.message);
log.error('SMTP', err);
} else {
log.info('SMTP', 'Successfully sent ccount ticket %s mail to %s', ticket._id, ticket.address);
}
@@ -88,6 +89,7 @@ Sinu kasutajanimi: ${user.username}<br/>Sinu parool: registreerimisel kasutatud
transport.sendMail(mailOptions, err => {
if (err) {
log.error('SMTP', 'Failed sending registration mail to %s, %s', user.username, err.message);
log.error('SMTP', err);
} else {
log.info('SMTP', 'Successfully sent registration mail to %s', user.username);
}
@@ -124,6 +126,7 @@ function sendResetLink(req, user, resetToken) {
transport.sendMail(mailOptions, err => {
if (err) {
log.error('SMTP', 'Failed sending password reset mail to %s, %s', user.username, err.message);
log.error('SMTP', err);
} else {
log.info('SMTP', 'Successfully sent password reset mail to %s', user.username);
}
@@ -155,6 +158,7 @@ function sendPassword(req, user, password) {
transport.sendMail(mailOptions, err => {
if (err) {
log.error('SMTP', 'Failed sending new password mail to %s, %s', user.username, err.message);
log.error('SMTP', err);
} else {
log.info('SMTP', 'Successfully sent new password mail to %s', user.username);
}

0 comments on commit b61707e

Please sign in to comment.
You can’t perform that action at this time.