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
Jetharam ChoudharyJetharam Choudhary 

SendEmail failed. First exception on row 1; first error: INVALID_FIELD_WHEN_USING_TEMPLATE, When a template is specified the plain text body, html body, subject and charset may not be specified : []

mail.setTemplateId(emailTemplate.id);
mail.setWhatId(employee.Id); 
mails.add(mail);

Getting above error,Please give me the exact solution
mahendar mmahendar m
Here is the below link which might help your problem to solve.

https://developer.salesforce.com/forums/ForumsMain?id=906F000000094ClIAI