+ 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 ?