I'm trying to get cfschedule to send out an email. I've checked out a few
tutorials and I don't see the problem I'm having.
I have a page to set the cfschedule and it contains:
<cfschedule
action="update"
task="facilities_daily_notification"
interval="60"
operation="httprequest"
startdate="#now()#"
starttime="#now()#"
url="http://sph.umd.edu/home/facilities_request/email/daily_notifcation.cfm"
>
The daily_notification.cfm page contains:
<cftry>
<cfmail
TO = "[email protected]" FROM = "Daniel Kessler<[email protected]>"
SUBJECT = "Email Notification Test" TIMEOUT = "30" failto = "[email protected]">
Hey man, good morning! So I guess this thing works...
</cfmail>
<cfcatch type="any">
There was a problem sending the message to the mail server. Please try again
later.<br>
<cfoutput>
#cfcatch.Message# <br>
(#cfcatch.type#)
</cfoutput>
<cfabort>
</cfcatch>
</cftry>
I've tried the daily_notification.cfm page and it sends an email if I just run
that, but I can't get it to run as a scheduled task.
help?!
thanks.
daniel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332318
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm