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.

We are using the SMTP sever service.

That service will send an email using ElasticEmail.

EmailJS Templates

We use Email Templates to pass varibles sent via JS.

This template will pass 'MCIT' and the student's name in the subject. And other values in the body.

View History and Events

You can view the email history here.

You can view the event history here.

Code and API Keys

This bit of code is added to the course index page by the Modification Files.

Here are the API keys

ElasticEmail

The Email is sent through ElasticEmailt to me at dra@milestone.us .

Through use of email rules is sorted in my inbox by exam.

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); }