Now send emails to myself when feedback gets reported

This commit is contained in:
Stefan Zermatten
2015-05-27 08:33:24 +02:00
parent 90e511eb00
commit 87d722adaf

View File

@@ -46,6 +46,12 @@ Meteor.methods({
});
report.owner = this.userId;
Reports.insert(report);
Email.send({
from: "reports@dicecloud.com",
to: "stefan.zermatten@gmail.com",
subject: "DiceCloud feedback - " + report.title,
text: JSON.stringify(report, null, '\t'),
});
},
deleteReport: function(id) {
var user = Meteor.users.findOne(this.userId);