Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Dynamic Email with Complete PDF sent

Avatar

Former Community Member
I have a Livecycle form with multiple email list and I need to send the complete PDF to the dynamic email can anyone help me please?
1 Reply

Avatar

Former Community Member
Create a button - not a submit button.



On the click event here's the code that did it for me:



var email = xfa.resolveNode("ApprovereMail").rawValue + ";"+xfa.resolveNode("AdmineMail").rawValue;

var subject = "Your subject goes here;

var body = "Your body goes here";



event.target.submitForm({cURL:"mailto: "+ email +"?subject=" + subject +"&body=" + body,cSubmitAs:"PDF",cCharset:"utf-8"});