This question is locked. New answers and comments are not allowed.
HI there,
I'm new to the Telerik Platform and am amazed at what it has to offer.
One thing I am trying to do, and make sure that it is possible to do is sending triggered emails based on an event (afterCreate for example) or Cron type jobs.
I guess that is one question!
The other is consuming user data in emails. I have a test template setup with a variable which is populated fine but am having difficulty consuming for example the use email that has triggered the 'afterCreate' event.
I have this code in which I want the recipient to be the email of the user
Any help would be great.
Thanks,
Daniel
I'm new to the Telerik Platform and am amazed at what it has to offer.
One thing I am trying to do, and make sure that it is possible to do is sending triggered emails based on an event (afterCreate for example) or Cron type jobs.
I guess that is one question!
The other is consuming user data in emails. I have a test template setup with a variable which is populated fine but am having difficulty consuming for example the use email that has triggered the 'afterCreate' event.
I have this code in which I want the recipient to be the email of the user
Everlive.Events.afterCreate(
function
(request, response, context, done) {
var
templateName =
"CPDPoints"
;
var
recipients = request.data.Email;
// need user email
var
emailContext = {
CPDValue: request.data.CPDValue,
//value from Activities content type
DisplayName: request.data.DisplayName
// need user displayname
};
Everlive.Email.sendEmailFromTemplate(templateName, recipients, emailContext,
function
(err, result) {
done();
});
done();
});
Any help would be great.
Thanks,
Daniel