--- title: ResultActionsSendEmail component slug: '1408' canonical_url: https://docs.coveo.com/en/1408/ collection: coveo-for-salesforce source_format: adoc --- # ResultActionsSendEmail component [.version.c4sf.c4sf-edition.c4sf-pro-enterprise] [Pro and Enterprise editions](https://docs.coveo.com/en/l2590456#salesforce) The `ResultActionsSendEmail` component is a result template component that lets users of the Coveo Insight Panel Lightning Component quickly insert a search result in an email. You can insert a result in an email by clicking ![Send as Email icon | Coveo for Salesforce](https://docs.coveo.com/en/assets/images/coveo-for-salesforce/send-as-email-icon.png). ## Options The component offers the options listed in this section. ### `actionName` Specifies the name of the Quick Action bound to this result action. Default value is `SendEmail` or `Case.SendEmail` (for Cases). This field is not required. ```html
``` Where you replace `` by the name of the Quick Action bound to this result action. ### `autoSubmit` Whether the component should submit the Quick Action right away. Default value is `false`. ```html
``` > **Note** > > Set this option to `true` to save and submit the Quick Action after setting the field values. ### `htmlBody` Specifies the content that will be inserted in the body of the email. You can add other result fields into your HTML content by using the `+$[field](https://docs.coveo.com/en/200/)+` or `${raw.field}` syntax, where you replace `field` with the selected field. Default value is `+${title}+`. ```html
``` > **Note** > > The `clickUri` isn't always the desired link to be shared and can vary for different content types and implementations. > Specific configurations may be required per result template. > > For example, to share a link to a publicly available Salesforce Knowledge article in an Experience Cloud site you would want to replace `+${ClickUri}+` with the following URL: > > `[communitydomain](https://).com/s/article/${raw.sfurlname}` ### `icon` Specifies the icon that will be displayed by the result action. If text is provided, the button will contain that text. If the HTML of an SVG image is provided, that image will be displayed on the button. Default value is `icon_svg`. ```html
``` Where you replace `` with the text that the button should contain or the HTML of the SVG image that the button should display. ### `insertType` Specifies where the component should insert the text in the email. Available values are: `begin`, `end`, `cursor`, and `replace`. The `begin`, `end`, and `cursor` values insert the search result at the specified location in the email body. The `replace` value replaces all the text in the email with the search result. Default value is `replace`. ```html
``` ### `onSendActionEvent` Specifies the name of the event to dispatch. You could then hook to that event and modify the action arguments before sending the action to Salesforce. This field is optional. Default value is `ResultActionsEvents.onSendAsEmail`. ```html
``` Where you replace `` by the name of the action to send. ### `toolTip` Specifies the tooltip that will be displayed while hovering over the component. Default value is a localized string with the key `SendAsEmail_tooltip` and the value `Send as Email`. ```html
``` ## Methods This component doesn't provide any methods. ## Usage This component can be included in the Coveo Insight Panel Lightning Component. It should be inserted in the `
` section. ```html
```