You need to sign in to do that
Don't have an account?

Rich Text field in Email template tests fine but doesn't display when sent programattically
I have a rich text field that I put a URI in. I placed it in a PDF attachment in a VF e-mail template. When I use the Send Test and Verify Merge fields button on the template it works perfectly. When I try to use this code to send it out...
List<Messaging.SingleEmailMessage> sendMe = new List<Messaging.SingleEmailMessage>(); for(sObject obj : actIn){ Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setSaveAsActivity(false); mail.setTargetObjectId('005A0000001eoWs'); mail.setWhatId((String)obj.get('id')); mail.setTemplateID('00XK0000000IDfn'); sendMe.add(mail); } Messaging.sendEmail(sendMe);
Everything else comes out exactly the same but the image is missing from the PDF. Any thoughts?
Hi,
Please refer following help link:
https://help.salesforce.com/apex/HTViewSolution?urlname=Why-images-stored-as-static-resources-cannot-be-seen-in-emails-sent-using-VF-email-templates-1327108316482&language=en_US