Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfschedule

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
Does anyone know why this does not work, this is a scheduled task, that i am trying to get a simple email from. when i select run in the cfadmin, i get an error.
If I navigate to the url, it works. But when I try to run it in cfadmin. It doesn't work

<cfquery name="archive" datasource="#datasource#">
select ID from table where idstatus = 3
</cfquery>

<cfif archive.recordcount GT 0>
<cfmail to="dwilson@mail.org" from="dwilson@mail.org" subject="Archive works">
Test email
</cfmail>
Yes
</cfif>

The cfadmin looks like this.
Task Name: Archive
URL: username: username
password: password
file: D:\cf\task\archive.cfm
 
There was an error running your scheduled task. Reasons for which scheduled tasks might fail include:

The URL is a redirection URL.
The URL is protected by IIS NT Challenge/Response or Apache .htaccess password. The Username and Password text fields for editing a scheduled task are intended to support Basic Authentication only.
The Domain Name lookup failed. Try using the IP address of the domain whenever possible.
The URL is an SSL site, but the SSL port was specified incorrectly.
The Web site is not responding.
The directory specified for published results does not exist.
 
The username and password set up in your CF datasource is not correct.


Hope This Helps!

ECAR
ECAR Technologies

"My work is a game, a very serious game." - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top