I would like to submit a form via email using Infopath 2003. I created the Data Connection, changed the Button properties Label: Submit email and changed ID: btnSendMail, then edited form code to read the following (I enter the code in the brackets):
var objEmail = XDocument.DataAdapters (''Submit'');
objEmail = XDocument.DOM.selectSingleNode ...