How do I add C and Bcc with multiple emails when submitting a form with JavaScript?
I have a form that I am using a javascript to email the whole form to a targetEmail, however, I want to include a Cc and Bcc to multiple email addresses. I would also like to include a secondary text field in the subject line. I've tried different variations to no avail, I'm stuck and not sure what to do. Any and all help is greatly appreciated. The code I'm using is below.
var targetEmail = "mail@titan.com";
var subjectLine = this.getField("Requested BY").valueAsString;
var body = "Tango Tank Request\nOrdered By: " + this.getField("Requested BY").valueAsString + " " + "\n" + this.getField("Notes and Comments").valueAsString
this.mailDoc({cTo: targetEmail, cSubject: subjectLine, cMsg: body});
