---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Email Composer (mini) component setup

# Email Composer (mini) component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read  
Email Composer (mini) renders the email composer in smaller spaces and within another component, such in a side panel on a record page. The mini component shows fewer details, but can
be expanded to show the To, Cc, and Bcc fields.

## Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.").  
Note:  
This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

For instructions on overriding styles using the Styles pane, see [Change the default appearance of components](https://www.servicenow.com/docs/ZNH7s2eu64BLSAAatrRtfg#add-styling-to-component "Set the styles for components and wrappers to change the default appearance.") .

Role required: admin or ui_builder_admin

## Procedure

1. Define a label for your Email Composer (mini) that differentiates it from other components in the content tree.  
   A label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") .
2. Select the Email Composer (mini) component, using one of these methods:
   * Click anywhere within the component.
   * Select the Email Composer (mini) label you created for your component in the content tree.

   {#email-composer-mini-uib-setup__choices_jc2_5xh_ktb}  
   The property fields appear in the Config tab in the setup panel on the right.
{#email-composer-mini-uib-setup__steps_ic2_5xh_ktb}

## Email Composer (mini) component properties {#ariaid-title2}

Configure the Email Composer (mini) component to display in a collapsed or expanded state when the page loads.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#email-composer-mini-config-properties__choices_4jq_bp0_csl}
{#email-composer-mini-config-properties__table_zdn_dc2_2cc__entry__2}

| Label \[property\] | Description |
|-|-|
| Sys ID \[sysId\] | Sys ID of the email_draft record. |
| Target table \[targetTable\] | Name of target table for this record. |
| Target record \[targetRecord\] | Unique identifier of the associated record. |
| Response type \[replyType\] | The reply type if the email is a response draft. The possible types are: Reply, reply all or Forward. |
| Email record ID \[replyId\] | Unique identifier of the sys_email record for a response message. |
| Show email details \[showEmailDetails\] | Toggle to display or hide email details, including the To, Cc and Bcc fields. Default: false |
| Enable horizontal layout \[forceHorizontalLayout\] | Displays the field labels horizontally. For use with Modeless dialog only. Default: false |
| Template details \[templateDetails\] | Details of the template to be applied. |
| Link details \[insertLinkInEmail\] | Link details to insert in email. Inserts message in the last active cursor position of email. |
| Allow pop out \[showPopOut\] | Displays the pop-out option. Default: true |
| Send email button variant \[sendEmailButtonVariant\] | Style variant for the Send email button. Default: secondary |
| Allow email creation \[showCreateNewEmail\] | Displays the Create new email button. Default: true |
| Allow discarding \[showDiscardDraft\] | Displays the Discard draft button. Default: true |
| Allow managing drafts \[showViewDrafts\] | Displays the Manage drafts button. Default: true |
| Allow attachments \[showAttachments\] | Displays the Attach files button. |
| Show recent drafts \[showRecentDrafts\] | Displays the Recent drafts button. |
| Show email templates \[showEmailTemplates\] | Displays the Email templates button. |
| Fit to parent \[fitToParent\] | Fits email client to its parent height. Default: false |
| Enable mentioning users \[enableMentioningUsers\] | Enable user mentions in the email compose area. Default: true |
| Icon \[popoutIcon\] | Defines the icon for the popout button. |
| Extra params \[extraParams\] | Passes URL extra param values to email client to decode. |
| Hide Send Button \[hideSend\] | Hides the Send email button. Default: false |
| Load latest draft \[loadLatestDraft\] | Loads the latest saved draft or sys_email_draft record. Default: false |
| Suppress global events \[suppressGlobalEvents\] | Suppresses events that rely on parent elements handling and only dispatches events that are manually binded. |
[ ]

{#email-composer-mini-config-properties__table_zdn_dc2_2cc}

## Email Composer (mini) component events {#ariaid-title3}

Select event handlers to configure the actions (events) provided with the Email Composer (mini) component.
The Events tab shows the events used by the Email Composer (mini) component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event
handlers.

### Event handlers {#email-composer-mini-config-events__section__7ys_ocq_alx}

Event handlers work with data resources to link the Email Composer (mini) actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.").

### Event descriptions {#email-composer-mini-config-events__section_qbv_d23_twb}

{#email-composer-mini-config-events__table_f3d_jlj_ktb__entry__2}

| Event | Description |
|-|-|
| Email initialised DRAFT_INITIALISED | An email draft has been rendered and initialized. Payload: * table: Table name * sys_id: Sys ID of the record * subject: Subject of the email {#email-composer-mini-config-events__ul_psz_cwg_jtb} |
| Email draft modified DRAFT_MODIFIED | User modifies an email draft. Payload: * table: Table name * sys_id: Sys ID of the record {#email-composer-mini-config-events__ul_kkl_qxg_jtb} |
| Email saved DRAFT_SAVE_SUCCEEDED | User selects the Save button. Payload: * table: Table name * sys_id: Sys ID of the record {#email-composer-mini-config-events__ul_r5m_5xg_jtb} |
| Email popped out EMAIL_CLIENT_POP_OUT_BUTTON_CLICKED | The user has selected the popout button and opened the email in another workspace tab. |
| Email sent DRAFT_SEND_SUCCEEDED | User selects the Send button Payload: * table: Table name * sys_id: Sys ID of the record {#email-composer-mini-config-events__ul_znz_yxg_jtb} |
| Email attachment added ATTACHMENTS_ADDED | The user adds attachments to the email for the first time. |
| Preview Record PREVIEW_RECORD | The user selects the popout control and the email is saved successfully. Payload: * table: Table name * sys_id: Sys ID of the record {#email-composer-mini-config-events__ul_cuz_yxg_jtb} |
| Email subject modified EMAIL_SUBJECT_CHANGED | Dispatch event when email subject changed Payload: subject: Subject value for email record |
[ ]

{#email-composer-mini-config-events__table_f3d_jlj_ktb}

