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 = `