From 04a1ddcb9b78369c77810d4d3f1534658d558a18 Mon Sep 17 00:00:00 2001 From: Mike Fitzpatrick Date: Sun, 3 Jun 2018 23:37:02 -0400 Subject: [PATCH] - Add Nick's email --- models/profile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/profile.js b/models/profile.js index 48cc176..05e0364 100644 --- a/models/profile.js +++ b/models/profile.js @@ -514,14 +514,14 @@ module.exports = { // setup email data with unicode symbols let mail = { from: '"Urnings|looking App" ', - to: 'mike@fitz.guru', + to: 'npfosi@gmail.com,mike@fitz.guru', subject: 'New Profile Submission', text: 'New Profile Submission\r\r\r\rName: ' + result.details.name + '(' + result.details.email + ')\r\rLocation: ' + result.details.location + '\r\rAbout: ' + result.details.about + '\r\rImage: ' + result.details.pic.detail + '\r\rMessages:\r' + outputMessagesAsText(result.messages) + '\r\r\r\rTo approve this profile: ' + approveProfileLink + '\r\r', html: '

New Profile Submission

Name: ' + result.details.name + '(' + result.details.email + ')
Location: ' + result.details.location + '

About:
' + result.details.about + '

Image:

Messages:
' + outputMessagesAsText(result.messages, true) + '

To approve this profile: click here.

', }; - Mailer.send(mail, (err, result) => { - resolve({ success: true, mailer: { err: err, result: result } }); + Mailer.send(mail, (mailErr, mailResult) => { + resolve({ success: true, mailer: { err: mailErr, result: mailResult } }); }); } });