VaranAwesomenow
Mega Sage
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 05-19-2021 07:55 AM
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.
- 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.
- 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
Labels:
- 1,090 Views