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

Send Email functionality

Hi friends,

​I have designed a custom button for sending email. I have a custom table where I'm displaying data. Whenever I'll select any record using checkbox and click that button then that particular record should go as email with that VF template which I'm using. I've designed a Visualforce email template using HTML which is coppy of the main table. I've also written a seperate controller for template but unable to map data. I'm able to send email with that template but records are not coming. I think their is some problem with data mapping with that template. I'm displaying recods in table from 3 different custom objects with Account and contact standard object. Any idea or suggestion or sample code for this requirement?
Thanks in advance.
Do you send your VF mail by apex code ?
Yes Wen
Hi have created a component in which I've written HTML code for email format and look. Then calling this component in VF email template and then calling this VF email template in my controller class.