Hi I add the following code to my Jscript. But there is no effect. I add a data connection with name Email Submit and while adding, infopath force me to enter at least a mail address to "to" or "cc" or "bcc". there is no error message or anything else but it does not send the mail to "
[email protected]". It send the mail to other mail address(the entered while adding data connection)with attachment and without form in the body.
function CTRL239_2::OnClick(eventObj)
{
var oEmail = XDocument.DataAdapters("Email Submit");
oEmail.To = "
[email protected]";
oEmail.Subject = "Subject";
oEmail.Intro = XDocument.DOM.xml;
oEmail.Submit();
}