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
Makam RuthvikMakam Ruthvik 

Can we access controller for setting subject in classic email template

<messaging:emailTemplate subject="a"  recipientType="Contact" relatedToType="Account" >
<messaging:htmlEmailBody >

</messaging:htmlEmailBody>
</messaging:emailTemplate>

Above is the generic email content available when we create a new visualforce email template.

Here for my body I can use visualforce component and a controller and happily render the data in it dynamically.

But how to dynamically render the subject dynamically. I know we can {!IF(, , ,)} condition and do it but that do not suffice in my requirement.

Is it possible to call the controller in the messaging:emailsubject ?