You need to sign in to do that
Don't have an account?
Maria Alexandra Andrica 6
HTML email empty
Hello All
I'm sending an HTML email via Apex. But when opening the email in Outllok is empty. Eventhough in the preview I see there is text.
Can you please help?
I'm sending an HTML email via Apex. But when opening the email in Outllok is empty. Eventhough in the preview I see there is text.
Can you please help?
The code:
htmlBody.escapeHtml4();
toAddress.add(cont.email);
mail.setToAddresses(toAddress);
mail.setTargetObjectId(cont.OwnerId);
mail.setTemplateId(et.id);
mail.setPlainTextBody(plainBody);
mail.setHtmlBody(htmlBody);
mail.setTargetObjectId(cont.Id);
// mail.setSubject(subject);
mail.setSaveAsActivity(true);
mail.setOrgWideEmailAddressId(owea.get(0).Id);
messages.add(mail);