Highlighted

Send email message without attaching form

Avatar

Avatar

jhcarrell

Avatar

jhcarrell

jhcarrell

28-10-2009

Below is a sample click event javascript for a button.  This will generate an email including form information of your choosing without attaching the actual form (PDF) itself.

This would benefit people in situations that have the form auto saving to a predetermined location, but would still like an email notification that the form has been submitted.

     var cMyMsg = "Your Text\n\n";
          cMyMsg += "Your Text " + Fieldname1.rawValue + "\n";
          cMyMsg += "Your Text " + Fieldname2.rawValue + "\n";

     app.mailMsg({
          bUI: false,
          cTo: "To EmailAddress",
          cCc: "CC EmailAddress",
          cSubject: "Your Subject Text",
          cMsg: cMyMsg
     });

Enjoy!