VaranAwesomenow
Mega Sage

I have seen lot of instances where we accidently enable outgoing emails in non production and forget to add test email address. This can lead to emails being sent to users from non production environment, this can cause lot of dissatisfaction in users as now they have to deal with lot of unwanted emails, to avoid developers accidently doing this mistake following solution is created.

  1. A business rule that checks to ensure that whenever we set email outgoing to true, it will set all email records in send ready to send – ignore.
  2. A flow (IgnoreEmails Every one hr) that runs every one hr it will set all send –ready emails to send –ignore.

If any testing in non prod requires emails to go to a test email address then flow = IgnoreEmails Every one hr can be deactivated and then reactivated once testing is complete.

Code is available  @ Email logs - avoid sending emails from non production instances

 

Version history
Last update:
‎05-19-2021 07:55 AM
Updated by: