diff --git a/api/models/Run.js b/api/models/Run.js index 3c1a5f1..a1f5fc3 100644 --- a/api/models/Run.js +++ b/api/models/Run.js @@ -40,19 +40,19 @@ module.exports = { } }); + var emailText = "You've been invited to " + values.creatorName + "'s lunch run: '" + + values.name + "'! \n\n Put in your order here:\nhttp://www.lunchrun.me/#/run/" + + values.id + "/order/"; var options = { from: values.creatorName + " <" + values.creatorEmail + ">", - subject: "You've been invited to a lunch run!", - text: "You've been invited to " + values.creatorName + "'s lunch run: '" - + values.name + "'! \n\n Put in your order here:\nhttp://www.lunchrun.me/#/run/" - + values.id + "/order/" + subject: "You've been invited to a lunch run!" }; for (var idx in values.invitees) { var invitee = values.invitees[idx]; var specificOptions = options; specificOptions.to = invitee.name + " <" + invitee.email + ">"; - specificOptions.text += invitee.name; + specificOptions.text = emailText + invitee.name; console.log(specificOptions); transport.sendMail(specificOptions, function(err, response) {