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
Martha VMartha V 

visualforce template to do or not to do

We need to have a button from the Campaign detail page that will send emails (using a template) to selected campaign members.

I made a visualforce page with an extension to help with the selection of the campaign members to be emailed. Once I had that all done however I found out that SendSingEmail using a template doesn’t work with CampaignMember as a whatid(). So now, I wonder if it can be done with a visualforce template. Am I thinking on the right direction or is there a better solution for this?