Newer Version Available
Customizing the Email Action
The Email action in Case Feed lets support agents connect with customers via email. With
the apex:emailPublisher component, you can:
- Customize the dimensions of the Email action.
- Define defaults and visibility for fields.
- Define the visibility and label of the send button.
- Define onSubmit functionality.
- Support email templates and attachments in the action.
apex:emailPublisher Attributes
Use Case
Cirrus Computers, a multinational hardware company with technical support agents in ten support centers throughout the world, wanted to customize the Email action to increase standardization in outgoing messages and to limit the fields agents could edit.
Cirrus used the apex:emailPublisher component to create an Email action that:
- Has read-only To and Subject fields.
- Pre-populates those fields, ensuring consistency and increasing agents’ efficiency when writing email messages.
Code Sample
1<apex:page standardController="Case" >
2 <apex:emailPublisher entityId="{!case.id}"
3 fromVisibility="selectable"
4 subjectVisibility="readOnly"
5 subject="Your Cirrus support request"
6 toVisibility="readOnly"
7 toAddresses="{!case.contact.email}"
8 emailBody=""/>
9</apex:page>