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
Jasmine Cam 25Jasmine Cam 25 

Custom Lightning Button

Hi,

Would anyone be able to advise how to create a send email button in Lightning? With a default template and 'from' address? I had a custom javascript button in classic and have converted and deployed these buttons in to Lightning but they are not working. Thanks!
Khan AnasKhan Anas (Salesforce Developers) 
Hi Jasmine,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

http://salesforcecodex.com/2019/05/send-email-using-email-template-and-apex/

http://sfdcmonkey.com/2017/01/03/send-email-lightning-component/

https://metillium.com/2017/03/the-lightning-email-grid-component/

https://developer.salesforce.com/blogs/2018/06/convert-javascript-buttons-to-lightning-friendly-alternatives-with-the-lightning-experience-configuration-converter.html

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas