Newer Version Available

This content describes an older version of this product. View Latest

Simple Email Actions

Send an email where you specify the subject, body, and recipients.

This object is available in API version 32.0 and later.

Each licensed org can send single emails to a maximum of 5,000 external email addresses per day based on Greenwich Mean Time (GMT). For orgs created before Spring ’19, the daily limit is enforced only for emails sent via Apex and Salesforce APIs except for the REST API. For orgs created in Spring ’19 and later, the daily limit is also enforced for email alerts, simple email actions, Send Email actions in flows, and REST API. If one of the newly counted emails can’t be sent because your org has reached the limit, we notify you by email and add an entry to the debug logs. Single emails sent using the email author or composer in Salesforce don't count toward this limit. There’s no limit on sending single emails to contacts, leads, person accounts, and users in your org directly from account, contact, lead, opportunity, case, campaign, or custom object pages. In Developer Edition orgs and orgs evaluating Salesforce during a trial period, you can send to a maximum of 50 recipients per day, and each single email can have up to 15 recipients.

Supported REST HTTP Methods

URI
Get a list of available simple email actions:
/vXX.X/actions/standard/emailSimple
Formats
JSON, XML
HTTP Methods
GET, HEAD, POST
Authentication
Authorization: Bearer token

Inputs

Input Details
emailAddresses
Type
string
Description
Required if emailAddressArray isn’t used. The email recipients specified as a comma-separated list. The number of email recipients must be five or less. If emailAddressArray is also used, the combined number of recipients must be five or less.
emailAddressesArray
Type
string
Description
Required if emailAddress isn’t used. Up to five email recipients, specified as a collection of strings. If emailAddress is also used, the combined number of recipients must be five or less.
emailBody
Type
textarea
Description
Required. The body of the email in plain text.
emailSubject
Type
string
Description
Required. The email's subject.
senderAddress
Type
string
Description
Optional. The organization-wide email address to be used as the sender. Required only if senderType is set to OrgWideEmailAddress.
senderType
Type
string
Description
Optional. Email address used as the email’s From and Reply-To addresses. Valid values are:
  • CurrentUser—Email address of the user running the flow. This is the default setting.
  • DefaultWorkflowUser—Email address of the default workflow user.
  • OrgWideEmailAddress—The organization-wide email address that is specified in senderAddress.

Outputs

None.