607
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
Last step is to test and verify merge fields. Click Send Test and Verify Merge Fields button to verify merge fields.
1)
2)
3)
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
[email protected]">
Dear {!recipient.name},
Below is the list of contacts related to your account: {!relatedTo.name}.
Action Contact Name Contact 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.