Hello,
I use the following function to send emails in my form.
function sendEmail(to, cc, subject, body, attachment)
{
try
{
var appItem;
var mailItem;
appItem = new ActiveXObject("Outlook.Application");
mailItem = appItem.CreateItem(0);
mailItem.Recipients.Add(to);
mailItem.Subject = subject;
mailItem.Body = ...