Whitelist email addresses in non-production environments
We have a live application which communicates with customers over email. As we are testing new functionality in lower instance I need to ensure that our customers *do not* receive emails; and only customers who agree to participate in early testing do. In other words, I need to whitelist email addresses in non-production environments. Did anybody face such issue? How did you solve it?
Miroslav Samoylenko DO NOT USE
You could use a constant to check which environment you’re on, and if its not production, perform the check to see if the e-mail address is whitelisted. This can be done by adding a setting to the account object, or any other preferred way or registering this information.