November 5, 2019
Emailing inside captivate 2019
Comments
(2)
November 5, 2019
Emailing inside captivate 2019
Newbie 2 posts
Followers: 0 people
(2)
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….

2 Comments
2021-02-12 14:34:35
2021-02-12 14:34:35

I have found this JavaScript solution will work EXCEPT within a LMS.

function sendEmail(){

window.location.href = “mailto:me@you.com?subject=Insert%20Subject%20Here&body=Insert%20Body%20Here”;

}

Like
(1)
2019-12-01 10:13:25
2019-12-01 10:13:25

There is a solid reason why the team took out the e-mail functionality. Success depends on too many parameters which you cannot control at all. Moreover I believe you posted in the wrong forum, because I see that you refer to StoryLine, not to Captivate in the JS.

Like
(1)
Add Comment