diff --git a/config/mail.js b/config/mail.js index d0574f2..7f6e1bf 100644 --- a/config/mail.js +++ b/config/mail.js @@ -16,36 +16,36 @@ let transporter = nodemailer.createTransport({ module.exports = { - verify: () => { - debug(`Verifying SMTP connection...`) + verify: () => { + debug(`Verifying SMTP connection...`) - return new Promise( (resolve, reject) => { - transporter.verify() - .then( (success) => { - console.log(` SMTP${(success)?'':' not'} ready`) - resolve() - }).catch( (err) => { - console.log(err.stack) - reject() - }) - }) + return new Promise( (resolve, reject) => { + transporter.verify() + .then( (success) => { + console.log(` SMTP${(success)?'':' not'} ready`) + resolve() + }).catch( (err) => { + console.log(err.stack) + reject() + }) + }) - }, + }, - send: transporter.sendMail.bind(transporter), + send: transporter.sendMail.bind(transporter), - text: (text) => { - return `Tracman\n\n${text}\n\nDo not reply to this email\nFor information about why you received this email, see the privacy policy at ${env.url}/privacyy#email` - }, + text: (text) => { + return `Tracman\n\n${text}\n\nDo not reply to this email\nFor information about why you received this email, see the privacy policy at ${env.url}/privacyy#email` + }, - html: (text)=>{ - return `

+Tracman

${text}

Do not reply to this email. For information about why you recieved this email, see our privacy policy.

` - }, + html: (text)=>{ + return `

+Tracman

${text}

Do not reply to this email. For information about why you recieved this email, see our privacy policy.

` + }, - noReply: '"Tracman" ', + noReply: '"Tracman" ', - to: (user) => { - return `"${user.name}" <${user.email}>` - } + to: (user) => { + return `"${user.name}" <${user.email}>` + } }