danarashad
Programmer
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
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