[SalesForce] How to implement Send an Email functionality for custom object

I want to implement Send an Email functionality for custom object(Currently send an email available for only Contact/Lead/Person Account).

  • Once we click on "Select Template" button it should open a new window
    with all the existing email templates
  • Once we select any one email template the subject and body should
    populate on subject and Body field in visualforce page.

Anyone have any idea on how to implement this functionality?

Mock Email template

Best Answer

All you want can be implemented with buttons, picklist, input texts and a reach text editor.

From the controller you can query the emails templates, then you can list the templates names in a picklist, once the user select an option in the picklist you can populate a reach text area with the body of the email template.

Rich text editor: <apex:inputTextArea richText="true" />

Related Topic