From 14145bb4023e8e7eed0f7d0f480f73499e0e79b1 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sun, 28 Mar 2021 15:18:23 -0700 Subject: [PATCH] Minor edits to nodemailer --- src/lib/nodemailer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/nodemailer.js b/src/lib/nodemailer.js index 4835bfe..426fae6 100644 --- a/src/lib/nodemailer.js +++ b/src/lib/nodemailer.js @@ -20,6 +20,7 @@ class NodeMailer { _this.transporter = _this.createTransporter() } + // Define an email server 'transport' for nodemailer createTransporter () { const transporter = _this.nodemailer.createTransport({ host: _this.config.emailServer, @@ -78,7 +79,7 @@ class NodeMailer { const subject = data.subject const to = data.to - const emailUser = data.email // email from the user who initiated the sharing email + // const emailUser = data.email // email from the user who initiated the sharing email const payload = data.payloadTitle const bodyJson = data @@ -103,9 +104,7 @@ class NodeMailer { }) // This paragraph just be added to the message for // emails that are not password reset ones - const paragraphTag = `

${emailUser} would like to share the document ${payload} with you through - LaunchpadIP.net. -

` + const paragraphTag = 'This is a test email' const htmlMsg = `

${subject}:

${payload === 'Email reset' ? '' : paragraphTag}