+ Start a Discussion
raman123raman123 

i want send email through apex code when case owner is change and email should go to old owner

Om PrakashOm Prakash
Hi Yash,
From Trigger , get the old owner by Trigger.oldMap, and send email to owner email.
Please do this trailhead module.
https://trailhead.salesforce.com/content/learn/modules/apex_triggers/apex_triggers_intro

Feel free to ask if any queries from your code.