Javascript for email not including subject line

May 13, 2016

Can anyone help? I've adapted javascript from a previous thread on here. It triggers the email and the content correctly but the subject line is missing. I don't know what I'm doing wrong. Here's my script:

var player = GetPlayer();

var useremail=player.GetVar("email");

var subject="Training Claims";

var exercisenotes1=player.GetVar("Thoughts1");
var exercisenotes2=player.GetVar("Thoughts2");
var exercisenotes3=player.GetVar("Thoughts3");

var mailto_link='mailto:'+useremail+'?subject='+subject+'&body='+"Fault Claim Number:%0d%0A"+exercisenotes1+"%0d%0A%0d%0ANon Fault Claim Number:%0d%0A"+exercisenotes2+"%0d%0A%0d%0ANotification Only Claim Number:%0d%0A"+exercisenotes3;,'emailWin');


1 Reply

This discussion is closed. You can start a new discussion or contact Articulate Support.