I have an Email Quick Action on Lead and using a VF page Email Template. The VF Email template refers Components and Apex Code and depends on RelatedTo.Id being passed. I am not able to fetch the Custom Controller data into the Email Template when the template is selected in the Lightning Email action. When i do a 'Send Test' Preview, it is coming up well. Please give some pointers.
Any pointers much appreciated. Searching on discussion forums didn't throw any light.