Schedule and Mail
i want use cfscheduler tag in mx 7 on windows 2000 send out 100 emails once week @ specific time. disctinct email addresses taken query access 2003 database.
two questions:
1- if 1 or of 100 email addresses not valid.
i data check email validations database emails have correct email syntax. maybe there addresses not valid , cfmail not able send. "dead" emails go server deposit area or other email sends??
2- want make sure cfscheduler sends @ exact time specified. correct way , cfschedule tag 100% accurate can depend on run once week , never run more once week?
<cfif dayofweekasstring(dayofweek(now())) eq 'friday' , timeformat(now(), 'hh:mm tt') eq '12:25 pm'>
<cfschedule action = "update"
task = "sendemails"
operation = "httprequest"
url = " http://myserver/mydirectory/sendemails.cfm"
startdate = "5/11/07"
starttime = "12:25 pm"
interval = "weekly"
path = "c:\inetpub\wwwroot\mydirectory"
requesttimeout = "600">
</cfif>
sendemails.cfm date , time condition:
<cfif dayofweekasstring(dayofweek(now())) eq 'friday' , timeformat(now(), 'hh:mm tt') eq '12:25 pm'>
...etc...
....etc...
</cfif>
two questions:
1- if 1 or of 100 email addresses not valid.
i data check email validations database emails have correct email syntax. maybe there addresses not valid , cfmail not able send. "dead" emails go server deposit area or other email sends??
2- want make sure cfscheduler sends @ exact time specified. correct way , cfschedule tag 100% accurate can depend on run once week , never run more once week?
<cfif dayofweekasstring(dayofweek(now())) eq 'friday' , timeformat(now(), 'hh:mm tt') eq '12:25 pm'>
<cfschedule action = "update"
task = "sendemails"
operation = "httprequest"
url = " http://myserver/mydirectory/sendemails.cfm"
startdate = "5/11/07"
starttime = "12:25 pm"
interval = "weekly"
path = "c:\inetpub\wwwroot\mydirectory"
requesttimeout = "600">
</cfif>
sendemails.cfm date , time condition:
<cfif dayofweekasstring(dayofweek(now())) eq 'friday' , timeformat(now(), 'hh:mm tt') eq '12:25 pm'>
...etc...
....etc...
</cfif>
your mail server send "undeliverable mail" memo address in block. that's happens us.
More discussions in ColdFusion
adobe
Comments
Post a Comment