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
Karen DavisonKaren Davison 

Visualforce send preview email


I've created a Visualforce email template in a sandbox, but when testing via the "Send Test and Verify Merge Fields" I don't receive the email despite  checking the "Send email preview to:" and entering my email address. 

The merge fields work correctly in the preview pane.
<messaging:emailTemplate recipientType="User"
    subject="Test Template"
    replyTo="" >
<messaging:htmlEmailBody >        
         <STYLE type="text/css">
               TH {font-size: 12px; font-face: arial; background: #000000; border-width: 1;  text-align: center; color: #ffffff }
               TD  {font-size: 12px; font-face: arial }
               TABLE {border: solid #000000; border-width: 1; width: 600; border-collapse: collapse;}
               TR {border: solid #000000; border-width: 1}
               ul {list-style-type: square; color:#FFD700;}
               ul li span { color: black; }
                  <font face="arial" size="2">
        <p>Dear {!},</p>
        <p>Below is a list of criteria related to the Insight Brief:<b> {!}</b>.</p>  
       <table border="0" >
                 <tr >
    <apex:repeat var="cx" value="{!relatedTo.Criteria__r}">
           <td><apex:outputText value="{!cx.Name}" escape="false"/></td>
           <td><apex:outputText value="{!cx.Options__c}" escape="false"/></td>
           <td><apex:outputText value="{!cx.Note__c}" escape="false"/></td>
       <p />
<messaging:plainTextEmailBody >
Dear Karen,
Below is a list of criteria related to the Insight Brief: {!}

Job: {!relatedTo.Job__c}

[ Criteria ] - [ Options ] - [ Note ]

<apex:repeat var="cx" value="{!relatedTo.Criteria__r}">
[ {!cx.Name} ] - [ {!cx.Options__c} ] - [ {!cx.Note__c} ]


Am I missing something obvious?