Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add registered symbol in a email subject line

I need help adding a registered symbol in my email output so when the customer recives the email they see registered symobil next to the first word "FSFS in the subject line. I tried usinf &reg but it doesnt work.

String fullName = profile.getAddress().getFirstName() + " " + profile.getAddress().getLastName();
        String html = b.toString()
        .replace("[insertName]", fullName)
        .replace("[trackingnumber]", claim.getClPicNbr().toString())
        .replace("[MM/DD/YY]", dateNow)
        .replace("[CLAIMID]", claim.getClId().toString());

        email.postMail(recipients, "[email protected]", 
                    "FSFS&reg Insurance Claim Received",** I  need the registered symbol here
                    html);
like image 440
user2149910 Avatar asked Dec 10 '25 10:12

user2149910


1 Answers

Email is not (always) HTML based, and the entity you are using there is ® (again, not really for email). You could use the symbol itself or the unicode \u00AE by changing this

 "FSFS&reg Insurance Claim Received"

to

 "FSFS® Insurance Claim Received"

or

 "FSFS\u00AE Insurance Claim Received"
like image 71
Elliott Frisch Avatar answered Dec 12 '25 23:12

Elliott Frisch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!