--- title: Email Composer component setup description: The Email Composer component enables requestors and fulfillers to use email to communicate. The component is associated with a record to include conversations as part of the record.Configure the tables and properties for your Email Composer component.Select event handlers to configure the actions \(events\) provided with the Email Composer component. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/email-composer-component-uib-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 6 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # Email Composer component setup The Email Composer component enables requestors and fulfillers to use email to communicate. The component is associated with a record to include conversations as part of the record. ## 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md). **Note:** This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component. Role required: admin or ui\_builder\_admin ## Procedure 1. Define a label for your Email Composer 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md). For instructions on using the content tree, see [Manage UI pages and page variants](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md). \[Omitted image "email-composer-content-tree.png"\] Alt text: Email Composer content tree. 2. Select the Email Composer component, using one of these methods: - Click anywhere within the component. - Select the Email Composer label you created for your component in the content tree. The property fields appear in the **Config** tab in the setup panel on the right. **Parent Topic:**[UIB Setup Information](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md) ## Email Composer component properties Configure the tables and properties for your Email Composer component. 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md). - **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
| Label \[property\] | Description |
|---|---|
| Sys ID\[sysID\] | Unique identifier of the sys\_email\_draft record to fetch. Use -1 to create a new 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 for a response message. 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 minified composer\[isCompact\] | Type of email composer to load. Loads either the full composer or the mini composer \(compact\). When true, the mini composer loads.Default: **false** |
| Show email details\[showEmailDetails\] | Toggle to display or hide the 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. |
| Allow email creation\[showCreateNewEmail\] | Displays the **Create new email** button.Default: **true** |
| Allow discarding\[showDiscardDraft\] | Displays the **Discard draft** button.Default: **true** |
| Link details\[insertLinkInEmail\] | Link details to add in the email. Inserts the message in the last active cursor position. |
| Allow managing drafts\[showViewDrafts\] | Displays the **Manage drafts** button.Default: **true** |
| Allow attachments\[showAttachments\] | Displays the **Attach files** button.Default: **true** |
| Send email button variant\[sendEmailButtonVariant\] | Sets the style variant for the **Send email** button. Options are primary, secondary, and tertiary.Default: **primary** |
| Fix resizable pane\[sidebarDisabled\] | Prevents the user from resizing the sidebar panes by moving the divider.Default: **false** |
| Enable mentioning users\[enableMentioningUsers\] | Enable user mentions in the email compose area.Default: **true** |
| Column layout property value\[columnLayout\] | Sets the column layout value of the connected component. |
| Initiate send email \[initiateSendEmail\] | Triggers the send action.Default: **false** |
| Default divider position\[sidebarDefaultDividerPosition\] | Sets the default location of the sidebar divider using a number between 0 and 100. To place the divider all the way to the left, enter 0. To place the divider all the way to the right, enter 100. To place the divider exactly in the middle of the panes, enter 50. |
| Pane minimum width\[sidebarRightPaneConstraints\] | Sets the minimum width of the right pane of the sidebar. You can set this value as a range of 0 to 100 and/or as a number of pixels. Enter a JSON string in the format `{minRatio:number, minPixels:number}`. |
| Pane-sidebar ratio\[sidebarRatioPreference\] | Sets the user preference for the ratio of sidebar inside the right pane of the resizable panes. When set, this ratio is used every time that user access the email composer. |
| 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** |
| Event | Description |
|---|---|
| Email InitialisedDRAFT\_INITIALISED | An email record is initializedPayload: - table: Table name - sys\_id: Sys ID of the record - subject: Subject of the email |
| Email draft modifiedDRAFT\_MODIFIED | User modifies an email draftPayload: - table: Table name - sys\_id: Sys ID of the record |
| Email savedDRAFT\_SAVE\_SUCCEEDED | User selects the Save buttonPayload: - table: Table name - sys\_id: Sys ID of the record |
| Email sentDRAFT\_SEND\_SUCCEEDED | User selects the Send buttonPayload: - table: Table name - sys\_id: Sys ID of the record |
| Email record status changedRECORD\_STATUS\_CHANGED | Status of an email record changesPayload: - table: Table name - sys\_id: Sys ID of the record - status: Record status \(Default: inserted\) |
| Email tab header updateFORM\_UPDATE\_HEADER | Updates the value of the email tab headerPayload: - table: Table name - sys\_id: Sys ID of the record - recordDisplayValue: Tab header displa value |
| Email tab updateUPDATE\_ONE\_TAB | Closes out the workspace email tab- type: Type of action \(Default: UPDATE\_ONE\_TAB\_CLOSE\) - tab\_id: Workspace tab ID of the record |
| Resizable pane size changedRESIZABLE\_PANES\_SIZE\_CHANGED | Sets the sidebar ratio when the user changes the pane size- sidebarRatio: Ratio of the sidebar panes - sidebarRatioPreference: User's preference for the ratio of the sidebar panes |
| Email subject changedEMAIL\_SUBJECT\_CHANGED | Dispatch event when email subject changedsubject: Subject value for email record |