The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Many customers and partners have a need to send emails when building integrations with  With the APEX API’s you can now leverage the platform to send emails.

You can send individual emails to email addresses, contacts, leads or users, and additionally you can CC or BCC email addresses to the email you are sending.

Mass Emails can be sent to contacts, users or leads, using templates. The API provides an option to save the email as an activity on the contact or lead you are sending the email to.

To see a code example and learn more about send emails through the APEX API click here.

For an example of using the sendEmail API in an scontrol, click here.

Below is a snippet of code to give you an idea of how easy it is to get started sending email on the platform.  We hope you can make use of this great new feature when leveraging the API to extend the platform!  

Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.

Add to Slack Subscribe to RSS