I have trigger after insert and after update
if(trigger.isinsert){
Forecastcheckemail fr=new Forecastcheckemail(trigger.newmap,null);
fr.SendEmail();
}
If(trigger.Isupdate)
{
Forecastcheckemail fr=new Forecastcheckemail(trigger.newmap,trigger.oldmap);
fr.SendEmail();
}
Apex Class:
I want newOppMap in sendEmail() Method as well. But i am getting error in the line Opportunity opp = newOppMap.get(id);.....Please suggest