Hi, I am trying to test a cf schule task without using the CF admin, that is using <cfschedule>
In the CF admin, I set the mail server as 127.0.0.1, but the mail is not being delivered, is there anything else I have to do in the CF admin to test cfmail locally? I have to set this up using the <cfschedule> tags as my hosting company does not support scheduled tasks, as they told me to set up a cron task in cpanel, which I don't even know what that is. I want to make sure everything is working on my localhost before I try it on my hosting server. Doing it this way, how can I get the file scheduler.cfm to run without use of the CF admin. my scheduled task(scheduler.cfm): <cfschedule action="update" task="GetDate" operation="httprequest" url="http://localhost/~honoluluhosting/schedule/get_date.cfm" startdate="2/11/2012" starttime="6:00 PM" interval="Daily"> DailyTips task has been set up,... the file that it calls(getDate.cfm): <cfset date = #CreateODBCDate(now())#> <!---<cfset time = Now()> <cfset time = dateadd("h",-6,time) />---> <!--- Get tips from the tips table---> <!---record_id, tipdate, dailytip, consumer_link, research_link---> <cfquery name="rs_date" datasource="#REQUEST.dataSource#"> SELECT * FROM users </cfquery> <!--- Get users & their email from the users table---> <cfquery name="GetUsers" datasource="#REQUEST.dataSource#"> SELECT * FROM users </cfquery> <cfloop query="GetUsers"> <cfmail To="#GetUsers.email_address#" From="[email protected]" Subject="Today's Date" type="HTML" server="localhost"> Hello, #name#, today's date is: <br> <em>#DateFormat(date, "mmmm d, yyyy")#</em><br /> </cfmail> </cfloop> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5789 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm
