submitting form data to an email address - workaround for IP2003-Outlook 2007 incompatibility - InfoPath Dev
in

InfoPath Dev

submitting form data to an email address - workaround for IP2003-Outlook 2007 incompatibility

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

    submitting form data to an email address - workaround for IP2003-Outlook 2007 incompatibility

    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", "[email protected]")
     
    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.