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
0 comments:
Post a Comment