How to send Email via REST API in Salesforce?

How to send Email via REST API in Salesforce?

We can use emailSimple REST API to send emails from Salesforce platform.

Path:

/services/data/v53.0/actions/standard/emailSimple

HTTP Method:

POST

Body:

{
  "inputs" : [
    {
      "emailBody" : "Email body",
      "emailAddresses" : "email addresses separated by coma(',')",
      "emailSubject" : "Subject",
      "senderType" : "CurrentUser"
    }
  ]
}

Reference Link:

https://developer.salesforce.com/docs/atlas.en-us.api_action.meta/api_action/actions_obj_email_simple.htm

Example:

Output:

Leave a Reply