Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Send email message without attaching form


Level 3

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";

          bUI: false,
          cTo: "To EmailAddress",
          cCc: "CC EmailAddress",
          cSubject: "Your Subject Text",
          cMsg: cMyMsg


0 Replies