Emailing inside captivate 2019

Hi Guys, I need to send an email from inside captivate 2019 with my user variables in the email. This is what i tried but does not seem to work (I attached the code to a button): var player = GetPlayer(); var course=”Storyline test course” var email=player.GetVar(“my_email@abc.com”); var subject=”Assessment Complete”; var body_start=”I’ve just completed my assessment!”; var mailto_link=’mailto:’+email+’?subject=’+subject+’&body=’+body_start; win=window.open(mailto_link,’emailWin’); I really need help as my client needs this functionality thanks in advance….

Emailing from inside captivate 2019

Hi Guys, I need to send an email from inside captivate 2019 with my user variables in the email. This is what i tried but does not seem to work (I attached the code to a button): var player = GetPlayer(); var course=”Storyline test course” var email=player.GetVar(“my_email@abc.com”); var subject=”Assessment Complete”; var body_start=”I’ve just completed my assessment!”; var mailto_link=’mailto:’+email+’?subject=’+subject+’&body=’+body_start; win=window.open(mailto_link,’emailWin’); Please help thanks in advance….