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 = {
|
var options = {
|
||||||
from: values.creatorName + " <" + values.creatorEmail + ">",
|
from: values.creatorName + " <" + values.creatorEmail + ">",
|
||||||
subject: "You've been invited to a lunch run!",
|
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/"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
for (var idx in values.invitees) {
|
for (var idx in values.invitees) {
|
||||||
var invitee = values.invitees[idx];
|
var invitee = values.invitees[idx];
|
||||||
var specificOptions = options;
|
var specificOptions = options;
|
||||||
specificOptions.to = invitee.name + " <" + invitee.email + ">";
|
specificOptions.to = invitee.name + " <" + invitee.email + ">";
|
||||||
specificOptions.text += invitee.name;
|
specificOptions.text = emailText + invitee.name;
|
||||||
|
|
||||||
console.log(specificOptions);
|
console.log(specificOptions);
|
||||||
transport.sendMail(specificOptions, function(err, response) {
|
transport.sendMail(specificOptions, function(err, response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user