Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Add cc: email address

Avatar

Former Community Member

Created a submit form. How do I add a cc: email- address to my form. Thank you.

1 Accepted Solution

Avatar

Correct answer by
Level 6

mailto:john@asdf.com?cc=lisa@adsf.com&subject=Re: New Account Opening&body=Thank%20you%21

Not sure why the envelop icons appeared above...

View solution in original post

4 Replies

Avatar

Level 6

Depends on your Submit approach. Are you using the LC Submit button taht comes withthe application?  If so, drag a button to the from, mke the Control Type: Submit under the Field tab, and add/modify this script under the Submit tab:

mailto:john@asdf.com?cc=lisa@adsf.com&subject=New Account Opening&body=Thank%20you%21

If you want to use a custom button witrh scripting... add this to the button using the script editor:

var mail;

var address = "main.email.com";

var ccAdd = "cc.email.com";

var sub = “ testing emailing”

var body = “file attached”; //default text in email body

mail = "mailto: " + address + "?cc=" + ccAdd + "&subject=" + sub + "&body=" + body;

  1. event.target.submitForm({

cURL: mail,

bEmpty: true,

cSubmitAs: "PDF", //attach PDF to email

cCharset: "utf-8"

});

}

Avatar

Correct answer by
Level 6

mailto:john@asdf.com?cc=lisa@adsf.com&subject=Re: New Account Opening&body=Thank%20you%21

Not sure why the envelop icons appeared above...

Avatar

Level 6

Cool. you're welcome. Please mark answer "Correct" so others know this has been resolved.