Forum Discussion
JanetMinchel681
3 years agoCommunity Member
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(); v...
Jürgen_Schoene_
3 years agoCommunity Member
try
var player = GetPlayer();
var feedback = player.GetVar('MyQuestion');
var email = 'email@xxxx.com';
var subject = 'VCI Complaint Management Question';
var emailBody = feedback;
var mailto_link = 'mailto:'+email+'?subject='+subject+'&body='+encodeURIComponent(emailBody);
window.open(mailto_link,'_self');
result:
https://360.articulate.com/review/content/f30e9e0a-7c08-4180-bea3-b99aa966e36d/review