function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
deepak1.3956330618074822E12deepak1.3956330618074822E12 

Custom button to send email adds + symbol in subject and body of the email

I have creaed a custom button called "Send Email"  and with URL as the content source. I am also populating email with the fields. But when the email client opens, the subject and body have "+" symbol in places of "space"

The url that i am referring to as given below

mailto:{!Case.Additional_To_Emails__c};{!Contact.Email}  &cc="support@aryaka.com"&subject= [{!Case.CaseNumber}][{!Case.Subject}] [{!Case.Ref_ID__c}]&body={!Case.Last_Case_Comment}

The email has the subject as below

[00036029][Test+test] [ref:_00DL0ADQ5._500L03bbZe:ref]

The body of the email as below

"Test+Comment+from+Sandbox
Regards
Deepak"

Anybody has any idea on why its adding "+" in place of "spaces"

Regards
Deepak
deepak1.3956330618074822E12deepak1.3956330618074822E12
Seems, i got it working using Onclick Javascript instead of URL

javascript:location.href='mailto:{!Contact.Email};{!Case.Additional_To_Emails__c}?CC=support@aryaka.com&SUBJECT=[{!Case.CaseNumber}] [{!Case.Subject}][{!Case.Ref_ID__c}] &BODY=';

But what I am not getting now is "not able to get the Most Recent Public Comment" in the email body. Somehow it doesnt like adding this field to the javascript and always return blank.

Regards
Deepak