i did create email templeate if annualreveune >=tenlacks neet to send email templeate but its not working=======================theprogram is =======================global class databasebatchcomplex implements database.Batchable<sobject>{ global database.querylocator start (database.batchablecontext cn){ return database.getQueryLocator('name,industry,annualrevenue from account'); } global void execute(database.BatchableContext cn,list<account> ap){ for(account con : ap){ if(con.annualreveune==1000000){ string[] toaddress=new string[]{'con.email'}; string[] fromaddress=new string[]{'profile.email'}; messaging.SingleEmailMessage mail=new messaging.SingleEmailMessage(); mail.setTemplateId(mytemp); mail.setToAddresses(toaddress); mail.setCcAddresses(fromaddress); messaging.Email ma =new messaging.Email(mail); messaging.sendEmail(ma,mail); } } } global void finish(database.BatchableContext cn){ } }the error is in that line 12 : Variable does not exist: mytemp