Lightning web component send email using Apex class controller
Either use this whole project in salesforce CLI using visual studio code or Copy EmailHandler.cls to copy email sending code. This can be used in visual force page or LWC app
-
Login to salesforce using developer account
-
Click on setup on top right depicted in Cog wheel logo
-
Click on Setup
-
Click on Menu icon below salesforce icon
-
Click on Sales app
-
Open Leads and select a lead or create one.
-
Drag and drop sendEmail component from aside pannel to your layout and click save. Activate if not activated.
- Check rendered page in Leads page. Fill email and click on send.