Emailing with text from Articulate

I would like to generate an email when a course is complete (for example, click here to send email to receive credit for this course).  However, I would like to have text in my email for example John Smith has completed the course in .....

I have the below JavaScript  from Advanced Articulate Training.  Will this work?  Does someone have the JavaScript for emailing text from Articulate? 

Thanks!!!

Save Storyline variables to a text file 

var fso = new ActiveXObject("Scripting.FileSystemObject");

var s = fso.OpenTextFile("C:\\Test.txt", 8, true, 0);

var name = player.GetVar("TextEntry");

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

s.WriteLine("Email: " + email);

s.WriteLine("Name: " + name);

s.WriteLine("==========");

s.Close(); 

1 Reply