> Hi, is it possible to set a variable in the Application.cfc > file to use as a email setting?
Usually I will create an application variable in the onApplicationStart method such as: <cfset application.systemEmail = "[email protected]" /> Another option would be a request variable in the onRequestStart method: <cfset request.systemEmail = "[email protected]" /> The application variable will live as long as the application is active in memory, and the request variable will live only as long as the current page request (i.e. you don't have to reload the application for it to pick up the change if you edit the file). Both have the benefit of being accessible to pretty much anything running with the page (custom tags, CFC's, etc.). You would use these as: <cfmail from="#application.systemEmail#" ... <cfmail from="#request.systemEmail#" ... -Justin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5109 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
