
How to Test email template in SFDC Anonymous Window ?
Code
In normal case, we will use email Template to test our email in clicking ‘Send Test and verify merge fields’:
However, it sometimes, will have following result.
To testing email in Production env, we can use following code to test in Apex Anonymous Window.
1 |
Messaging.SingleEmailMessage mail =new Messaging.SingleEmailMessage(); |
For how to use Apex Anonymous Window, you can perdorm with following path: Debug–>Open Execute Anonymous Window ( Ctrl+E).
Or view following post:




近期评论