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
prbprb 

Visualforce Email Templates Mysteriously Stopped Working

I have an email template that notifies certain people via workflow when an opportunity reaches a certain stage.
This was working fine until last month when the template stopped binding the data to the message.
Can someone please have a look at this template and let me know if anything's wrong?
Maybe the API changed in some way with one of the upgrades and I missed the notice?

Code:
<messaging:emailTemplate subject="ProServ Deal Signed" recipientType="User" relatedToType="Opportunity">
<messaging:htmlEmailBody >   
 <html>
        <body>        
         <STYLE type="text/css">
               TH {font-size: 11px; font-face: arial;background: #CCCCCC; border-width: 1;  text-align: center } 
               TD  {font-size: 11px; font-face: verdana } 
               TABLE {border: solid #CCCCCC; border-width: 1}
               TR {border: solid #CCCCCC; border-width: 1}
         </STYLE>
<font face="arial" size="2">

<p>Owner:  {!relatedTo.Owner.Name} </p>
<p>
Account ({!relatedTo.Account}): <br/>
{!relatedTo.Account.Name}<br/>
{!relatedTo.Account.BillingCity}<br/>
{!relatedTo.Account.BillingState}<br/>
{!relatedTo.Account.BillingCountry}<br/>
</p>

<hr width="50%" align="left" />
<p>
ProServ Total:  {!relatedTo.ProServ_Total__c} <br/>
ProServ Currency:  {!relatedTo.CurrencyIsoCode} <br/><br/>
The statement of work is: <br/>
{!relatedTo.ProServ_Project_Name__c} <br/>
{!relatedTo.Description}<br/>
</p>

<hr width="50%" align="left" />
<br/>
<table border="0">
    <tr> 
      <th>Quantity</th><th>Currency</th><th>Amount</th><th>Product Name</th>    
    </tr>
    <apex:repeat var="cx" value="{!relatedTo.OpportunityLineItems}">
       <tr>
           <td>{!cx.Quantity}</td>
           <td>{!cx.CurrencyIsoCode}</td>
           <td>{!cx.ProServ_Daily_Rate__c} </td>
           <td>{!cx.PricebookEntry.Name}</td>
       </tr>
    </apex:repeat>   
</table>        
</p>

</font>
</body>
</html>
</messaging:htmlEmailBody> 
</messaging:emailTemplate>

 



Message Edited by prb on 11-11-2008 12:23 PM