What is this?
I use the following to send me exam scores from Assessment (MCDE, MCIT, and MCIE) courses. I use these scores in validating pass/completion records when BlueVolt fails to capture them.
EmailJS
EmailJS is a service that takes a JS command embedded in an assessement file and generates an email to be sent.
EmailJS Templates
View History and Events
Code and API Keys
This bit of code is added to the course index page by the Modification Files.
ElasticEmail
The Email is sent through ElasticEmailt to me at dra@milestone.us .
JS Code added to the Results Slide
var player = GetPlayer(); var currentDate = new Date(); var studentName = player.GetVar("lmsName"); var studentScore = player.GetVar("score"); var templateParams = { name: studentName, score: studentScore, date: currentDate, lang: 'EN' }; if (studentScore > 69) { emailjs.send('smtp_server', 'mcde', templateParams); }
var player = GetPlayer(); var currentDate = new Date(); var studentName = player.GetVar("lmsName"); var studentScore = player.GetVar("score"); var templateParams = { name: studentName, score: studentScore, date: currentDate, lang: 'EN' }; if (studentScore > 69) { emailjs.send('smtp_server', 'mcit', templateParams); }
var player = GetPlayer(); var currentDate = new Date(); var studentName = player.GetVar("lmsName"); var studentScore = player.GetVar("score"); var templateParams = { name: studentName, score: studentScore, date: currentDate, lang: 'EN' }; if (studentScore > 67) { emailjs.send('smtp_server', 'mcie', templateParams); }