What is the best way to change behavior between DEV, TEST, and RELEASE builds?
I have an application that sends emails to recipients stored in a database. When developing and testing I would like to override the desired behavior and send the email to the person using the application (e.g. the developer or tester).
When we go to production, I would like to of course send it to the email coming from the database.
I considered adding a RELEASE constant as discussed here
Does anyone have some advice on the best way to achieve this or a suggestion as to a better way to approach the problem?