Here is the JavaScript Code for emailing:
event.target.mailDoc(false,To, CC, Bcc, subject, body);
Example:
event.target.mailDoc(false,"test@test.com", "", "", LastName.rawValue+" "+FirstName.rawValue+" "+Date.rawValue, "Here goes the message of the email");
Hope this helps.
Good Luck,
SekharN