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

How to call an existing email alert from apex class?
I would like to use an existing Email Alert in an Apex class.
I do not want to simply send an email from the class.
The reason is that Administrators will want to change recipients and/or templates, and they should be able to do so using clicks, not code.
Is this possible?
I do not want to simply send an email from the class.
The reason is that Administrators will want to change recipients and/or templates, and they should be able to do so using clicks, not code.
Is this possible?
Please check below post
1) http://www.infallibletechie.com/2012/10/how-to-reference-email-template-using.html
2) https://th3silverlining.com/2010/05/08/using-basic-email-templates-within-apex/
You Can use Email Template in Apex Class like below sample code:-
Let us know if this will help you