former33t has asked for the wisdom of the Perl Monks concerning the following question:
I am looking to write a quick sendmail replacement for use in other scripts. My problem is that I am working in an environment where I am limited to the number of emails I can send per hour. I want to make sure that I never exceed that limit. My hosting company tracks my number sent in an hour internally so I only get a notice from them when I exceed it. Since I have multiple applications running on the host that all may generate email (most PHP, some PERL), I wanted to have them send the mail to a central script that would ensure the max has not been reached and then either send the email using sendmail or queue it up for the next hour.
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mail counter
by shmem (Chancellor) on Jan 19, 2007 at 16:30 UTC | |
by former33t (Scribe) on Jan 19, 2007 at 21:18 UTC | |
|
Re: mail counter
by sgifford (Prior) on Jan 19, 2007 at 17:11 UTC | |
|
Re: mail counter
by jettero (Monsignor) on Jan 19, 2007 at 16:15 UTC | |
by davorg (Chancellor) on Jan 19, 2007 at 16:23 UTC | |
by jettero (Monsignor) on Jan 19, 2007 at 16:52 UTC | |
by former33t (Scribe) on Jan 19, 2007 at 21:14 UTC | |
by skazat (Chaplain) on Jan 22, 2007 at 07:18 UTC | |
|
Re: mail counter
by skazat (Chaplain) on Jan 22, 2007 at 07:14 UTC | |
|
Re: mail counter
by ryanc (Monk) on Jan 23, 2007 at 21:56 UTC |