Skip to main content
July 22, 2009
Answered

Running Functions At Certain Times

  • July 22, 2009
  • 1 reply
  • 719 views

I have some functions that I want to run automatically at a certain time. For example say every morning at 6:00AM i want one of my CF functions to run that sends an email out to everyone as a reminder.

Right now the only way I see to do this is to have someone visit the website, it then looks if it send the email that day or not, if not it sends it. Is there a way to do this where I don't have to have someone access the website and it was automatic. For example I want it to runand send emails today automatically just in case no one ever goes to the website today.

Thanks

Todd Warne

This topic has been closed for replies.
Correct answer ilssac

Ah, cfsearching beat me to the easy answer.

Yes ColdFusion has a function called "Scheduled Tasks" that can be set up in the administrator, or by the schedule task tag in the latest versions, to be run on a schedule, imagine that.

1 reply

Inspiring
July 22, 2009

You can place the code to execute in a cfm script. Then run the script as a scheduled task. You can create scheduled tasks via the CF Administrator, or using cfschedule. See the documentation for more details.

http://livedocs.adobe.com/coldfusion/8/Tags_r-s_11.html


ilssac
ilssacCorrect answer
Inspiring
July 22, 2009

Ah, cfsearching beat me to the easy answer.

Yes ColdFusion has a function called "Scheduled Tasks" that can be set up in the administrator, or by the schedule task tag in the latest versions, to be run on a schedule, imagine that.