Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Email Button - To: line blank and Cc: line with names listed

Nortel22
Level 2
Level 2

I created an email button and I don't want the To: line filled with name(s) only the Cc: line this is what I have so far. What am I doing wrong?

 

 

var sub

sub = CTitle.rawValue;

var ebody

ebody = "The attached file is the filled-out form. Please open it to review the data."

  1. event.target.submitForm({cURL

:"mailto: "";?&cc=K.A.@aol.com,T.P.@aol.com;;&subject="+sub+"&body="+ebody,cSubmitAs:"PDF",cCharset:"utf-8"});

 

3 Replies
8_BIT_PLATOON
Level 2
Level 2

This works in a submit button:

mailto:?cc=K.A.@aol.com,T.P.@aol.com?subject=example subject

This works on any other event:

event.target.submitForm({cURL:"mailto:?cc=K.A.@aol.com,T.P.@aol.com?subject=dddddd&body=dddd",cSubmitAs:"PDF",cCharset:"utf-8"});

Nortel22
Level 2
Level 2

I receive an error message:

Microsoft Outlook does not recognize " "

This is what have I have in the "on click" event:

event.target.submitForm({cURL

:"mailto:

?cc=K.A.@aol.com,D.L.@aol.com;&subject=+sub+"&body="+ebody,cSubmitAs:"PDF",cCharset:"utf-8"});