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
AnjaniPrasadAnjaniPrasad 

Call Email with attachment through custom button ( In lightning)

I want to have custom email button on record page ( not based on activity or chatter related list) which should have a same behaviour what we are seeing on statndard Email button.
Anyone know how to implement this? I am fine if i need to implement via vf page or LC or LWC.


User-added image
ANUTEJANUTEJ (Salesforce Developers) 
Hi Anjani,

I found an implementation that is making use of lightning component to implement this similar use case, below is the link to the one that I found.

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

I hope this helps and in case if this comes handy can you please choose this as the best answer so that it can be used by others in the future.

Also, is there a specific reason why you would like to develop a custom component as the feature is already present as OOB functionality.

Regards,
Anutej