VisualForce Email Template

Three tags to create VisualForce email template
1) 
– in which you specify recipient type, relatedToType, subject and email address that they can reply back to.
2) 
– in which you define the html content you want to show in your Email.
3) 
– in which you include the text version of your Email.
Let me show you a simple example of how to create a VisualForce email template. We are going to create an email template which sends email about contacts that are related to an account.
The first step is to create an email template by going to Setup -> Administration Setup -> Communication Templates -> Email Templates -> New Template



salesforcefaq@gmail.com">

Dear {!recipient.name},

Below is the list of contacts related to your account: {!relatedTo.name}.

ActionContact NameContact Email
na7.salesforce.com/{con.id}"> View 
na7.salesforce.com/{con.id}/e"> Edit
{!con.Name}{!con.Email}




Dear {!recipient.name},

Below is the list of Contacts related to Account: {!relatedTo.name}.

[Contact Name] - [Contact Email]

[cont.Name]  -  [cont.Email]

For more detailed information login to http://www.salesforce.com
  
Last step is to test and verify merge fields. Click Send Test and Verify Merge Fields button to verify merge fields.




No comments:

Post a Comment

Differences between the Import Wizard and the Apex Data Loader

Salesforce CRM provides two tools for data migration—the Import Wizard and the Apex Data Loader. The Import Wizard   is designed for les...