Send email without having email client open? (need for work)
Hi, I am creating a contact us form which I need to pull info from and send to several emails; however, I do not want the email client to open into a compose message. I just want the info sent to those emails specified.
Here is the code I currently have:
var cMyMsg = this.getField('Name').valueAsString + " has a " + this.getField('Category').valueAsString + " that is " +
this.getField('Severity').valueAsString + ". " + "Description of " + this.getField('Category').valueAsString + ": " + this.getField('Description').valueAsString;
app.mailMsg({ bUI: true,
cTo: "123@email.com",
cSubject: this.getField('Category').valueAsString + " regarding PA Coversheets",
cMsg: cMyMsg } );
I currently have an text field set up for Email_Address. I need the form when submit is clicked to send email from that address to the emails I specify in the code without having the email client open.
Please help. Thank you.