Expand my Community achievements bar.

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

Avatar

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

Avatar

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"});

Avatar

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"});