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 } }); }); } });