Существует новый настройки Application.cfc
в ColdFusion 10, которая:нужно использовать настройки Smtp из ColdFusion 10
this.smtpServersettings = as a structure
Я могу жестко закодировать значения здесь, но я коплю мои настройки почты в базы данных, и я хочу использовать эти значения здесь, можно или нет использовать настройки базы данных здесь или нет.
вот мое обновление:
<cfcomponent hint="File for the Website" output="false">
<cfsetting showdebugoutput="no">
<cfset this.name = "myProject1">
<cfset this.applicationTimeout = createTimeSpan(2,0,0,0)>
<cfset this.clientmanagement= "yes">
<cfset this.loginstorage = "session">
<cfset this.sessionmanagement = "yes">
<cfset this.sessiontimeout = CreateTimeSpan(0,0,40,0) />
<cfset this.setClientCookies = "yes">
<cfset this.scriptProtect = "all">
<cfset this.setDomainCookies = true>
<cfset this.customTagPaths = ExpandPath('customtags')>
<cfset this.datasource = {name="myDB"}>
<cfset this.smtpServersettings = {structur as username,password and mail settings}>
, но это значение должно быть через базу данных, вы можете показать мне пример, пожалуйста,
Похоже, вам нужно будет отобразить cfc из базы данных. – placeybordeaux
Что именно означает, что – cfsammer
Можете ли вы создать cfc с программой, которая может читать из базы данных? – placeybordeaux