Simple Visualforce Email Template

Template:

<messaging:emailTemplate subject="Test" recipientType="User" relatedToType="Employee__c" >
<messaging:htmlEmailBody >
    <table>
        <tr>
            <td>Hi {!relatedTo.Employee_Name__c},</td>
        </tr>
        <tr>
            <td>Welcome to Accord Info Matrix</td>
        </tr>       
    </table>
    Regards,<br/>
    {!recipient.FirstName}
</messaging:htmlEmailBody>
</messaging:emailTemplate>


Output:


No comments:

Post a Comment