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
Complete noviceComplete novice 

Visualforce email Letterhead not working

Hi, I am creating my first VF email template and everything is working ok, apart from the letterhead.

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="Is it right for your course?" 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   
      <apex:repeat value="{!RelatedTo.OpportunityContactRoles}" var="ContactRole">
{!ContactRole.Contact.Name}
</apex:repeat>
<br/>
<p/>  Thank you for reviewing <p/>                  
   
    <b><apex:repeat var="opp" value="{!relatedTo.OpportunityLineItems}">
       <tr>
           
           <td>{!opp.PriceBookEntry.name}</td>
        </tr>
      </apex:repeat>  </b>  
 <br/>      
 <br/>
<br/>
Text of email etc. etc.

<br/>We look forward to hearing from you.
<br/>
<br/>Best wishes
<br/>
<br/>RSC
       </font>
          </body>
        </html>
    </messaging:htmlEmailBody>  
   
</messaging:emailTemplate>


Can anyone give me any ideas as to where I've gone wrong please?  In easy to understand words, as I don't 'do' code! :)
Complete noviceComplete novice
The image wasn't in the HTML body tags, I moved it down to underneath <body> and it worked. :)