Forum Discussion

JanetMinchel681's avatar
JanetMinchel681
Community Member
3 years ago

Need Javascript to open Outlook and send email from inside sl360

I am a novice at JS.  Can anyone make this javascript open Outlook, send an email to a specific mailto: address, so learners can ask questions?

Here is my current JS

var player = GetPlayer();
var email='';
var subject='VCI Complaint Management Question';
var feedback=player.GetVar('MyQuestion');
var emailBody = +feedback
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+encodeURIComponent(emailBody);
win=window.open(mailto_link,'email@xxxx.com');