Newer Version Available
messaging:plainTextEmailBody
The plain text (non-HTML) version of the email body.
Example
1<messaging:emailTemplate recipientType="Contact"
2 relatedToType="Account"
3 subject="Case report for Account: {!relatedTo.name}"
4 replyTo="support@acme.com">
5
6 <messaging:plainTextEmailBody>
7 Dear {!recipient.name},
8
9 Below is a list of cases related to {!relatedTo.name}.
10
11 <apex:repeat var="cx" value="{!relatedTo.Cases}">
12 Case Number: {!cx.CaseNumber}
13 Origin: {!cx.Origin}
14 Contact-email: {!cx.Contact.email}
15 Status: {!cx.Status}
16 </apex:repeat>
17
18 For more detailed information login to Salesforce.com
19
20 </messaging:plainTextEmailBody>
21
22</messaging:emailTemplate>Attributes
| Attribute Name | Attribute Type | Description | Required? | API Version | Access |
|---|---|---|---|---|---|
| id | String | An identifier that allows the plainTextEmailBody component to be referenced by other components in the page. | 14.0 | global | |
| 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 |