Including a cc in mailto
Jul 11, 2015
Hi there,
I am using JavaScript to email some results to users and this works fine.
However I would like to cc the email to someone else and have no idea how to achieve this..!!
My JavaScript (cobbled together from the community) is shown below:
var player=GetPlayer();
var email=player.GetVar("email");
var username=player.GetVar("username");
var status=player.GetVar("completion");
var subject="Results for ";
var response1 = player.GetVar("T1");
var response2 = player.GetVar("T2");
var response3 = player.GetVar("T3");
var response4 = player.GetVar("T4");
var response5 = player.GetVar("T5");
var mailto_link='mailto:'+email+' subject='+subject+username+status+'&body='+"TASK 1 - Has been Completed - "+response1+
"%0d%0A%0d%0ATASK 2 - Has been Completed - "+response2+
"%0d%0A%0d%0ATASK 3 - Has been Completed - "+response3+
"%0d%0A%0d%0ATASK 4 - Has been Completed - "+response4+
"%0d%0A%0d%0ATASK 5 - Has been Completed - "+response5+;
win=window.open(mailto_link,'emailWin');
Any help gratefully received.. !!
1 Reply
Hi John,
Javascript is not something I'm able to offer support on, but hopefully one of our many community experts will be able to pop in here to assist you. In the meantime here are some helpful best practices that you may want to review.
This discussion is closed. You can start a new discussion or contact Articulate Support.