function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.