You need to sign in to do that
Don't have an account?
Akshiiiii
send email on button click
I have created an Email template and public group. Now I need to create a button on a record page that will send an email (from the template) to the public group. How can I code this in lightning?
Please follow the below blog and try.
Lightning componet:
https://salesforcecodex.com/salesforce/send-email-using-email-template-and-apex/
refer the below link for Apex logic to get the public group users.
https://developer.salesforce.com/forums/?id=906F00000008wXvIAI
If this hepls, please mark it as best Answer
Thanks!!