Fix email link appending
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user