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
Saurav nirwal 21Saurav nirwal 21 

Opportunity status

When Opportunity status changed send mail to Owner using Email Template by Apex Code
SonamSonam (Salesforce Developers) 
Check the sample code on our help site:
https://help.salesforce.com/apex/HTViewSolution?id=000181297&language=en_US