You need to sign in to do that
Don't have an account?
Jetharam 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
mail.setWhatId(employee.Id);
mails.add(mail);
Getting above error,Please give me the exact solution
https://developer.salesforce.com/forums/ForumsMain?id=906F000000094ClIAI