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
Max Friel.ax1251Max Friel.ax1251 

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?