You need to sign in to do that
Don't have an account?
Case Manager
Update Body of Email Template with Letterhead using APEX
I have created an emai template having a letterhead, I am trying to update few of the fields in the template from APEX and emai it. How can I manipulate the body of the email??
email.setTemplateId('00X1a000000HoOF');
email.setToAddresses(toRecipients);
email.setReplyTo('xyz@abc.com');
email.setTargetObjectId('0051a000000M21z');
email.setSaveAsActivity(false);
email.setTemplateId('00X1a000000HoOF');
email.setToAddresses(toRecipients);
email.setReplyTo('xyz@abc.com');
email.setTargetObjectId('0051a000000M21z');
email.setSaveAsActivity(false);