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
Ragnar Lothbrok 7Ragnar Lothbrok 7 

How to use the Email Template Body in LWC component ?

Hi there,
Today i was working on LWC Component which will give user an UI to send email with default email template assigned to that email.
Although i tried to get the email template from Apex class and used to in Email.
But it was not giving the correct format and data in email template.
Below is the .img for the same:
User-added imageIf anyone know how we can add and the same formattion as email template and data in template automatically appears. Please guide me in this. Thanks
VinayVinay (Salesforce Developers) 
Hi Ragnar,

Check below reference examples for using email template body in LWC component

https://hicglobalsolutions.com/blog/send-emails-templates-lightning-component/
https://developer.salesforce.com/forums/?id=9062I000000IHZCQA4

Please mark as Best Answer if above information was helpful.

Thanks,