Javatpoint Logo
Javatpoint Logo

<apex: emailPublisher> Component in Visualforce Page

The <apex: emailPublisher> component allows support agents to compose and send email messages to the customers using the Case Feed. In order to support email templates and attachments, we can customize this publisher. This component can only be used in organizations with Case Feed, and Email-to-Case enabled.

The <apex: emailPublisher> component has the following attributes:

1. autoCollapseBody

The autoCollapseBody is a Boolean-type attribute used to specify whether the email body will be collapsed to a small height when it's empty.

Syntax:

2. bccVisibility

The bccVisibility is a string-type attribute used to specify the visibility of the BCC field. These are the possible values for this attribute:

  1. editable
  2. editableWithLookup
  3. readOnly
  4. hidden

Syntax:

3. ccVisibility

The ccVisibility is a string-type attribute that specifies the CC field's visibility. These are the possible values for this attribute:

  1. editable
  2. editableWithLookup
  3. readOnly
  4. hidden

Syntax:

4. emailBody

The emailBody is a string-type attribute that specifies the email body's default text value.

Syntax:

5. emailBodyFormat

The emailBodyFormat is a string-type attribute that specifies the email body's format. These are the possible values for this attribute:

  1. text
  2. HTML
  3. textAndHTML

Syntax:

6. emailBodyHeight

The emailBodyHeight is a string-type attribute that specifies the email body's height in em.

Syntax:

7. enableQuickText

The enableQuickText is a Boolean-type attribute used to specify whether the quick text autocomplete functionality will be available in the publisher.

Syntax:

8. entityId

The entityId is an Id-type attribute used to specify the entity id of the record for displaying the email publisher.

Syntax:

9. expandableHeader

The expandableHeader is a Boolean-type attribute used for specifying whether the header is expandable or fixed.

Syntax:

10. fromAddresses

The fromAddresses is a string-type attribute used for specifying the restricted set of from addresses.

Syntax:

11. fromVisibility

The fromVisibility is a string-type attribute used for specifying the visibility of the "From" field. These are the possible values for this attribute:

  1. selectable
  2. hidden

Syntax:

12. id

The id is a string-type attribute, i.e., a unique identifier that allows this component to be referenced by other components on the page.

Syntax:

13. onSubmitFailure

The onSubmitFailure is a string-type attribute used for specifying the JavaScript method invoked when the email failed to be sent.

Syntax:

14. onSubmitSuccess

The onSubmitFailure is a string-type attribute that specifies the JavaScript method invoked when the email was successfully sent.

Syntax:

15. rendered

The rendered is a Boolean-type attribute used to specify whether the component is rendered on the page. The boolean value true is set as a default value for this attribute.

Syntax:

16. reRender

The reRender is an Object-type attribute used for specifying the Ids of one or more components that need to be redrawn when the email is sent successfully.

Syntax:

17. sendButtonName

The sendButtonName is a string-type attribute used for specifying the name of the send button in the email publisher.

Syntax:

18. showAdditionalFields

The showAdditionalFields is a Boolean-type attribute used to specify whether the additional fields defined in the publisher layout should be displayed.

Syntax:

19. showAttachments

The showAttachments is a Boolean-type attribute used to specify whether the attachment selector should be displayed.

Syntax:

showSendButton

The showSendButton is a Boolean-type attribute that specifies whether the send button should be displayed.

Syntax:

21. showTemplates

The showTemplates is a Boolean-type attribute used to specify whether the template selector should be displayed.

Syntax:

22. subject

The subject is a string-type attribute used for specifying the default value of the subject.

Syntax:

23. subjectVisibility

The subjectVisibility is a string-type attribute that is used for specifying the visibility of the Subject field. These are the possible values for this attribute:

  1. editable
  2. readOnly
  3. hidden

Syntax:

24. submitFunctionName

The submitFunctionName is a string-type attribute that is used for specifying the name of the function called from JavaScript to send the email

Syntax:

25. title

The title is a string-type attribute used to specify the title displayed on the email publisher header.

Syntax:

26. toAddresses

The toAddresses is a string-type attribute used to specify the default value of the "To" field.

Syntax:

27. toVisibility

The toVisibility is a string-type attribute used for specifying the visibility of the "To" field. These are the possible values for this attribute:

  1. editable
  2. editableWithLookup
  3. readOnly
  4. hidden

Syntax:

28. verticalResize

The verticalResize is a Boolean-type attribute used to specify whether the publisher allows vertical resizing.

Syntax:

29. width

The width is a string-type attribute used to specify the publisher's width in pixels or in percentages.

Syntax:

Output

apex: emailPublisher in Visualforce Page
apex: emailPublisher in Visualforce Page





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA