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
EchoEchoEchoEcho 

Visualforce email template secondary contact info

Is it possible to use a Visualforce Email Template to send an email to one person, while including some information from the Contact record of a secon person? For instance, I use setTargetObjectId() to pull in the email recipient's name, and I wanted to use setWhatId() to pass in an ID for a second contact, but setWhatId won't accept an ID of type Contact.

 

Thanks,

Tom