MichaelTamoush
3 years agoQrew Captain
Help with creating email syntax
I have the following code and it works fine, but if I remove the cc: line, it does not work.
Working Code:
var text Subject =
"Subject Text" ;
var text Body =
URLEncode("Body Text");
var text Email = "mailto:Email@email.com" &
& "?cc=Email@email.com"
& "&subject=" & URLEncode($Subject)
& "&body=" & $Body;
"<a href="
& $Email
& ">" & "Create Email" & "</a>"
However, if I comment out the cc line, it doesn't know the next line is the subject, and then the body. It will just string together the subject and body and treat it like another 'To' email address.
What syntax am I supposed to add or change when removing the cc? I am using a formula rich text field.
------------------------------
Michael Tamoush
------------------------------
Working Code:
var text Subject =
"Subject Text" ;
var text Body =
URLEncode("Body Text");
var text Email = "mailto:Email@email.com" &
& "?cc=Email@email.com"
& "&subject=" & URLEncode($Subject)
& "&body=" & $Body;
"<a href="
& ">" & "Create Email" & "</a>"
However, if I comment out the cc line, it doesn't know the next line is the subject, and then the body. It will just string together the subject and body and treat it like another 'To' email address.
What syntax am I supposed to add or change when removing the cc? I am using a formula rich text field.
------------------------------
Michael Tamoush
------------------------------