Hi,
I am trying to send an email from the infopath form as a body of the email with all the other email features.
I added a field to the form for email address(Text). and then I added a button. When I click the button, it has take the user to outlook with the infopath form as a body of the email and email address field populate on the To field on the outloook
Button has following code:
XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my=http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-11-05T21:13:45 ')
function CTRL2_5::OnClick(eventObj)
{ var test = Application.ActiveWindow.MailEnvelope;
test.To = getNode("/my:myFields/my:field1").text;
test.Visible = true; }
I have only one field on the form which is field1 and user has to give email address in the text box.
Please let me know if I ammissng something here.