There are atleast three ways in InfoPath 2003 to send an email from code (jscript):
//Method one (this also sends the current view)
//Methode two (needs an email dataconnection)
function EmailWithData(dataAdapterName, to, CC, subject, intro, attachmentFileName)
{
try
{
var objEmailAdapter;
objEmailAdapter = XDocument.DataAdapters(dataAdapterName);
objEmailAdapter.To = to;
objEmailAdapter.CC = CC;
objEmailAdapter.Subject = subject;
objEmailAdapter.Intro = intro;
objEmailAdapter.AttachmentFileName = attachmentFileName + ".xml";
objEmailAdapter.Submit();
return true;
}
catch(exception)
{
return false;
}
}
//Methode three
XDocument.UI.ShowMailItem(to, CC, BCC, subject, Body);
Goodluck, Albert