Error Trap for Email - InfoPath Dev
in

InfoPath Dev

Error Trap for Email

Last post 07-12-2006 07:55 AM by Suresh Reddy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-12-2006 05:42 AM

    • davers
    • Not Ranked
    • Joined on 06-26-2006
    • USA
    • Posts 15

    Error Trap for Email

    Hi everyone, I'm using the following code to submit:


    function XDocument::OnSubmitRequest(eventObj)
    {
    var oEmail = XDocument.DataAdapters("Email Submit");
    oEmail.To = "[email protected]";
    //oEmail.CC = [email protected];
    oEmail.Subject = "Subject";
    oEmail.Intro = "Email body";
    oEmail.Submit();
    //If the submit operation is successful, set
    //eventObj.ReturnStatus = true;
    // Write your code here
    }


    But I'm getting an error saying that the event handler didn't work...what is that and how do I create it? Sorry I'm such a noob...

    Thanks,

    Dave
  • 07-12-2006 07:55 AM In reply to

    Hi,

    After you create the connection (email), write the following code in your onclick event

    {
    var Email = XDocument.DataAdapters("Submit");
    Email.To = "agni";
    Email.CC = "agni";
    Email.Subject = "Subject";
    Email.Intro = "Email body";
    Email.Submit();

    }
    Hope this will help You.

    Thank you


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