coldbox environment safe email service
Almost a year ago I updated an interceptor I built for coldBox to allow our non-production environments (development and testing) to have a smart configuration that it DOES NOT send the email to the production users. And I just realized that I never wrote a blog post on it. Using the core functionality of coldbox, I configure our development and test environments to have its own configuration. ie. function configure() { environments = { localDevelopment = "URL.local", development = "URL" }; } function localDevelopment() { //Register interceptors as an array, we need order local.newInterceptors = {class="EnvironmentSafeMailService", properties={EmailTrace=true, EmailSend=false, EmailOverrideAddress="email@address.com"} }; ArrayAppend(interceptors ,local.newI...