2 Replies
Michael Hinze

You mentioned three variables, but only list two. I assume, the third one is the destination/target email address?

Try this script snippet:

var player = GetPlayer();
var emailaddress=player.GetVar("targetEmail");
var email=player.GetVar("txtEmail");
var name=player.GetVar("txtName");
var subject="Course Completion";
var body_start="Dear Natalie,"+"\n"+name+" has completed the course. His/her email address is " +email+"."+"\n"+"Thank you";
var mailto_link='mailto:'+emailaddress+'?subject='+subject+'&body='+body_start;