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.
}
Here is the link to the two download areas
My WebSite:
http://extra.cfhero.com/coldbox-add-ons/coldbox-environmentsafeemail
ForgeBox:
http://coldbox.org/forgebox/view/ColdBox-Interceptor---Environment-Safe-Mail-Service
If you are curious how I built it, here is my earlier blog post on that.
http://www.cfhero.com/2009/11/enhancing-coldbox-adding-core.html
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.newInterceptors);
}
Here is the link to the two download areas
My WebSite:
http://extra.cfhero.com/coldbox-add-ons/coldbox-environmentsafeemail
ForgeBox:
http://coldbox.org/forgebox/view/ColdBox-Interceptor---Environment-Safe-Mail-Service
If you are curious how I built it, here is my earlier blog post on that.
http://www.cfhero.com/2009/11/enhancing-coldbox-adding-core.html
Comments
Post a Comment