You need to sign in to do that
Don't have an account?

Is it possible to call an apex class directly from visual force email template to execute some tasks?
Is it possible to call an apex class directly from visual force email template to execute some tasks?
check this code it may helpful for you
Thank you
All Answers
you can do it by using a custom controller within Visualforce Email Templates.
Refer this link https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_templates_with_apex.htm
Regards
check this code it may helpful for you
Thank you