Sending Email from LMS

Hello All,

I am working on a course that has a "notebook" feature which allows users to input text. I would like to give them the option to email themselves their notes before closing out the course. I have viewed several post/tutorials on using javascript to prepopulate the email and it works when the course is published for the web.

However, ultimately these courses will be published for LMS and when I test the email buttons in that environment they don't work. I get the "hover hand" but when I click nothing happens.

When I was working on the print buttons there was an extra piece of code that I needed for SCORM is there something similar for emailing?

 

Here is the code I'm using.

var player = GetPlayer();

var useremail=player.GetVar('emailaddress');

var subject=('Module 2 Notes');

var notes1=player.GetVar("partnerprofile");
var notes2=player.GetVar("partnerpast");
var notes3=player.GetVar("partnerpurpose");
var notes4=player.GetVar("partnerpriorities");
var notes5=player.GetVar("partnerperception");




var content="Module 2 Notes%0d%0A%0d%0A";
content+="Partner Profile Notes:%0d%0A"+notes1+"%0d%0A%";
content+="Partner Past Notes:%0d%0A"+notes2+"%0d%0A";
content+="Partner Purpose Notes:%0d%0A"+notes3+"%0d%0A";
content+="Partner Priorities Notes:%0d%0A"+notes4+"%0d%0A";
content+="Partner Perception Notes:%0d%0A"+notes5+"%0d%0A";


var mailto_link='mailto:'+useremail+'?subject='+subject+'&body='+content;

win=window.open(mailto_link,'emailWin');

 

 

1 Reply