in reply to Re: sending bulk emails in a specified time
in thread sending bulk emails in a specified time
Of course we are going to need a note from your mother that you aren't going to do any spamming ;-}
The simplest way to do this would be to have a counter in your loop so that you could have something like:
... my $number_of_emails_per_minute = 100; .. my $time = time(); my $count = 0; while(WHEREVER YOUR ADDRESSES ARE COMING FROM) { # do whatever you do to send mail $count++; if ( $count == $number_of_emails_per_minute ) { my $time_left = 60 - ( time() - $time ); sleep $time_left; $time = time(); $count = 0; } }
I haven't got Mail::Sendmail on here at the moment so I can't make a proper example I'm afraid
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sending bulk emails in a specified time
by fullyloaded (Initiate) on Feb 03, 2002 at 23:19 UTC | |
by gellyfish (Monsignor) on Feb 04, 2002 at 12:34 UTC | |
by fullyloaded (Initiate) on Feb 08, 2002 at 22:18 UTC |