How to log mails being sent from Salesforce?

This post helps you learn how to log outgoing e-mails sent from Salesforce.
E-mails can be sent through two ways:

  • Workflow e- mail alerts.
  • Mails stent from Apex ( Using single e-mail or Mass e- mail)
Mails sent from Apex can be logged easily by creating a custom object and inserting records into it, whenever an e- mail is sent.

How to log the e- mails sent through workflow rules?

Here comes to the rescue E-mail servicesWith the help of Email services, you can create an email service address and give this address in Additional Addresses section while configuring the workflow e- mail alert.

You can write the logic for inserting/logging the e- mail into the custom object in the Inbound handler.


Comments

Popular posts from this blog

How to deploy Processes in Process builder using ANT?

Deploy profile metadata changes easily with simple Python script