MailEnvelope - InfoPath Dev
in

InfoPath Dev

MailEnvelope

Last post 11-05-2009 09:38 PM by chhaya singh. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-05-2009 03:56 PM

    MailEnvelope

    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.

     

  • 11-05-2009 09:38 PM In reply to

    I m bit confused by your question that exactly what do you want to achive? But If you want to send your form to some recipent and your infopath form as a body then you can use - Data connection i.e. Submit via email.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.