We don't bite newbies here... much | |
PerlMonks |
Re: mail counterby skazat (Chaplain) |
on Jan 22, 2007 at 07:14 UTC ( [id://595874]=note: print w/replies, xml ) | Need Help?? |
I know how to do all the counting and resetting stuff. Does anyone know how to make the script look like a sendmail like program as far as PHP’s mail functions are concerned? Ah, I see, you're basically asking how to make the interface to your queuing system, which is basically: * Keep a count of how many messages go out in x amount of time, * Queue up messages that can't go out after the limit has been reached * Reset counter after x amount * Send awaiting messages, * etc, I've always used Getopt::Long for command line interfaces. To emulate what you'd give to sendmail, you'd do something like:
(untested)
In Section
Seekers of Perl Wisdom
|
|