Question
My host does not allow scheduling of jobs, so I can't run mailNotify. Can it be modified to run as a CGI script? If so, how rough would that be? Has anyone done it before?
I realize I'd have to hit it frequently to get mail to send, but I'm willing to do so.
Thanks,
Tim.
Environment
--
TimHuntley - 09 Jun 2004
Answer
Hi Tim, there are a few mentions "of workaround scripts are available" scattered throughout the twiki documentation and this site, but so far I have not been able to find them and nobody has answered my (admittedly quiet) request for them.
I have made a
FeatureEnhancementRequest for mailnotify to be turned into a cgi-script (
MailNotifyCgiScript) but no takers so far. Maybe now with more than just myself asking it might get done faster.
--
MattWilkie - 09 Jun 2004
You could create a simple cgi wrapper that calls mailnotify. Then you can call the wrapper from a scheduled task on any server that has Internet access.
Example on Unix using the wget utility:
wget http://yourserver.com/cgi-bin/wrapmailnotify?magic=kingdom >dev/null
Hint: The wrapper should call mailnotify only if above magic parameter is supplied. This is to avoid a mailnotify call if the wrapper is accessed randomly, like by a robot.
--
PeterThoeny - 01 Aug 2004