---
schema_version: "1"
id: aae3508be1db5b1b0204ea40b225a3a1a9c548d28395e303ba004dc8dceae58c
title: SendEmailQuickActionDefaults Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b4bd2f45b31672bb44fc2ece5389fd1a5acbf6021eb95ad1829781cc81ede8a5
description: "Represents an Apex class that provides: the From address list; the original email’s email message ID, provided that the reply action was invoked on the email message feed item; and methods to specify related settings on templates. You can override these fields before the standard Email Action is rendered. Returns a list of email addresses that are available in the From: address drop-down menu for the standard Email Action.Returns the email message ID of the email to which the reply/reply all action has been invoked.Specifies whether the template subject should be ignored (true), thus using the original subject, or whether the template subject should replace the original subject (false). Specifies whether the template body should be inserted above the original body content (true) or whether it should replace the entire content with the template body (false).Sets the email template ID to load into the email body."
---
# SendEmailQuickActionDefaults Class

Represents an Apex class that provides: the From address list; the original email’s email message ID, provided that the reply action was invoked on the email message feed item; and methods to specify related settings on templates. You can override these fields before the standard Email Action is rendered.

## Namespace

[QuickAction](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_QuickAction.htm "The QuickAction namespace provides classes and methods for quick actions.")

## Usage

![Note](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/images/icon_note.png)

#### Note

You cannot instantiate this class. One can use the getters/setters when using it in the context of QuickAction.QuickActionDefaultsHandler.

- **[SendEmailQuickActionDefaults Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.htm#apex_QuickAction_SendEmailQuickActionDefaults_methods)**

## SendEmailQuickActionDefaults Methods

The following are methods for SendEmailQuickActionDefaults.

- **[getFromAddressList()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.htm#apex_QuickAction_SendEmailQuickActionDefaults_getFromAddressList)**  
    Returns a list of email addresses that are available in the From: address drop-down menu for the standard Email Action.
- **[getInReplyToId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.htm#apex_QuickAction_SendEmailQuickActionDefaults_getInReplyToId)**  
    Returns the email message ID of the email to which the reply/reply all action has been invoked.
- **[setIgnoreTemplateSubject(useOriginalSubject)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.htm#apex_QuickAction_SendEmailQuickActionDefaults_setIgnoreTemplateSubject)**  
    Specifies whether the template subject should be ignored (true), thus using the original subject, or whether the template subject should replace the original subject (false).
- **[setInsertTemplateBody(keepOriginalBodyContent)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.htm#apex_QuickAction_SendEmailQuickActionDefaults_setInsertTemplateBody)**  
    Specifies whether the template body should be inserted above the original body content (true) or whether it should replace the entire content with the template body (false).
- **[setTemplateId(templateId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_QuickAction_SendEmailQuickActionDefaults.htm#apex_QuickAction_SendEmailQuickActionDefaults_setTemplateId)**  
    Sets the email template ID to load into the email body.

### getFromAddressList()

Returns a list of email addresses that are available in the From: address drop-down menu for the standard Email Action.

#### Signature

public List<String\> getFromAddressList()

#### Return Value

Type: List<String>

### getInReplyToId()

Returns the email message ID of the email to which the reply/reply all action has been invoked.

#### Signature

public Id getInReplyToId()

#### Return Value

Type: [Id](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")

### setIgnoreTemplateSubject(useOriginalSubject)

Specifies whether the template subject should be ignored (true), thus using the original subject, or whether the template subject should replace the original subject (false).

#### Signature

public void setIgnoreTemplateSubject(Boolean useOriginalSubject)

#### Parameters

- **useOriginalSubject**:
    
    Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

#### Return Value

Type: void

### setInsertTemplateBody(keepOriginalBodyContent)

Specifies whether the template body should be inserted above the original body content (true) or whether it should replace the entire content with the template body (false).

#### Signature

public void setInsertTemplateBody(Boolean keepOriginalBodyContent)

#### Parameters

- **keepOriginalBodyContent**:
    
    Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

#### Return Value

Type: void

### setTemplateId(templateId)

Sets the email template ID to load into the email body.

#### Signature

public void setTemplateId(Id templateId)

#### Parameters

- **templateId**:
    
    Type: [Id](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")
    
    The template ID.

#### Return Value

Type: void