Newer Version Available
messaging:emailTemplate
Defines a Visualforce email template. All email template tags must be wrapped inside a single emailTemplate component tag. emailTemplate must contain either an htmlEmailBody tag or a plainTextEmailBody tag. The detail and form components are not permitted as child nodes. This component can only be used within a Visualforce email template. Email templates can be created and managed through Setup | Communication Templates | Email Templates.
Example
Translated Template Example
Attributes
| Attribute Name | Attribute Type | Description | Required? | API Version | Access |
|---|---|---|---|---|---|
| id | String | An identifier that allows the emailTemplate component to be referenced by other components in the page. | 14.0 | global | |
| language | String | The language used to display the email template. Valid values: Salesforce.com-supported language keys, for example, "en" or "en-US". Accepts merge fields from recipientType and relatedToType. | 18.0 | ||
| recipientType | String | The Salesforce.com object receiving the email. | 14.0 | ||
| relatedToType | String | The Salesforce.com object from which the template retrieves merge field data. Valid objects: objects that have a standard controller, including custom objects Visualforce supports. | 14.0 | ||
| rendered | Boolean | A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. | 14.0 | global | |
| replyTo | String | Sets the reply-to email header. | 14.0 | ||
| subject | String | Sets the email subject line. Limit: 100 characters. | Yes | 14.0 |