Which is to say you request the page every ten minutes from some other
computer.  This could be a browser windows left open, or a server running CF
or some other scripting language capable of doing an http request and on
which you have some scheduling capability.  For example, using Perl and cron
on an *nix machine.  You could also request the script that does the CFMAIL
using one of the ip monitoring programs available, such as IpSwitch's
WhatsUp Gold.  Once again, probably from another computer that you control.

If you have no ability to run scheduled tasks from another computer that's
connected full time to the internet, there's another kludge you can use.
Essentially, you do the 'scheduling' yourself.  You call your CFMAIL from
within an application.cfm file that you _know_ is likely to be executed at
least once every 10 minutes.  Say you've got a fairly busy web site where
you know that a page will be requested every couple of minutes.  Create an
application variable that holds the time you last sent your mail.  Every
time this application.cfm is run, you check the value of this variable.  If
more than 10 minutes has elapsed, send the email and update the variable.

Jim


----- Original Message -----
From: "Vygandas Razhas" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, August 25, 2001 6:03 PM
Subject: RE: How to Auto-Send email Every 10 Min?


> If you can keep your browser window up, you may use:
> ...
> <meta http-equiv="REFRESH" content="600">
> ...
> <cfmail...
>
> Browser will refresh page every 10 min.
>
> Vygandas Razhas
>
>
> >From: Robert Everland <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: CF-Talk <[EMAIL PROTECTED]>
> >Subject: RE: How to Auto-Send email Every 10 Min?
> >Date: Sat, 25 Aug 2001 19:48:04 -0400
> >
> >First off, anything that is not in the spool should go to the
undeliverable
> >folder, where all you have to do is move that mail right into the spool
> >file. The only way I see you being able to send yourself an email every
10
> >mins is by using CFX_sleep to pause your script for 10 min, or getting a
> >com
> >object that does the same thing, I know there is one somewhere Mike D
> >posted
> >it to the list before. Other than this there really isn't a way without
> >significantly reducing performance by ding a loop that checks the time
> >without pausing, this could cause the serve to loop constantly all day
> >long,
> >and would harm you more than dropped email would. HTH
> >
> >
> >Bob Everland
> >
> >-----Original Message-----
> >From: Tom Forbes
> >To: CF-Talk
> >Sent: 8/25/01 6:38 PM
> >Subject: How to Auto-Send email Every 10 Min?
> >
> >Good Evening,
> >I suspect my ISP is loosing mail, the mail server stops and I have to
> >call
> >and tell them to cycle the CF Server - then all is well, but most of the
> >
> >time I loose what was in the spool.
> >
> >I would like to use <CF MAIL> to auto send myself an e-mail every 10 min
> >or
> >so. Doing this, I could tell if the server was down by not receiving the
> >
> >message. I can not use the CF SCHEDULE TAG. How could I do this in a
> >simple
> >fashion??
> >
> >Thank You - I would appreciate any help.
> >
> >Tom


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to