emailing form data, using infopath 2003 + outlook 2007 - InfoPath Dev
in

InfoPath Dev

Qdabra® Training

Use our Google Custom Search for best site search results.

emailing form data, using infopath 2003 + outlook 2007

Last post 05-14-2009 02:15 AM by pineapple23. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-14-2009 02:15 AM

    emailing form data, using infopath 2003 + outlook 2007

    Hi everyone.

     I need to make my form email the data of a new record to a given address. The problem is that IP 2003 requires Outlook 2003 to be the default mail client in order to do this. I have found forum posts offering workarounds using javascript, however, none of them seem to work. it doesnt help that i have very little coding knowledge, and am not sure if i'm even pasting the code in the correct place

     

    function OpenMailEnvelop(subject, to)
    {
        try
        {
      var oEnvelope = Application.ActiveWindow.MailEnvelope;
     
      oEnvelope.Subject = subject;
      oEnvelope.To = to;
      oEnvelope.Visible = true;
     
            return true;
        }
        catch(exception)
        {
            return false;
        }
    }
    function btnSomeButton::OnClick(eventObj)
    {
      OpenMailEnvelop("this is the subject", "someone@somewhere.com")
     
    i've just been pasting all of this where the code for the button goes, and changing nothing except the "btnSomeButton" reference, and the email address/subject.
    any help would be very much appreciated.
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.