I know this is a developer issue really but I was hoping that someone may be able to point me in the right direction.
I have created my first VF email template can't get the letterhead to display at all.
I have saved the image in a folder accessible by all users, and the image is externally available. However the image doesn't show on the preview or on the email that I receive when I test it. It looks no different to when I don't include the image part.
This is the code (image part in italics):
<messaging:emailTemplate subject="SUBJECT LINE"
recipientType="Contact"
relatedToType="Opportunity"
replyTo="ABC@RSC.org" >
<apex:image id="Campaign_email_template_1_header"
value="https://c.cs84.content.force.com/servlet/servlet.ImageServer?id=0155E000000DOpG&oid=00D5E0000008mQr&lastMod=1491232024000"
height="64" width="64"/>
<messaging:htmlEmailBody >
<html>
<body>
<STYLE type="text/css">
TH {font-size: 14px; font-face: arial;background: #.FFFFFF; border-width: 0; text-align: center }
TD {font-size: 14px; font-face: arial }
</STYLE>
<font face="arial" size="2">
<p/> Dear blah blah blah...
<br/>Best wishes
<br/>
</font>
</body>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Can anyone give me any ideas as to where I've gone wrong please?
6 件の回答
If you are going to put the image in the body of the email, it needs to go in the HTML Body tags.