adding an emailcommand to an button

G

GTvdHaak

Hello,
i'm trying to make an email command with script editor in an new
infopathform.
the form will be placed on a sharepointserver, and got to find email
adresses from the exchange list.
the next lines were put in the ommand
// var objEmail = XDocument.DataAdapters(*Submit");
objEmail.To = XDocument.DOM.selectSingleNode("//my:ToField").text;
objEmail.Subject = XDocument.DOM.selectSingleNode("//
my:SubjectField").text;
objEmail.Versturen();

and still there is the error:

'objEmail' is undefined
Bestand:script.js
Regel:25

is there anyone who has the experience with this command?
 
Top