insite2000 has asked for the wisdom of the Perl Monks concerning the following question:
I bet there's a Monk out there who recognizes this. :-)foreach (@{$userinfo}) { $sendmail_info->{EmailAddress} = $_->{EmailAddress}; SendIt($sendmail_info); # Here is where I think we should say sleep 15; # (or other interval, 4 emails per # minute equals 240 e-mails per hour) } sub SendIt { my $info = shift @_; my $msg = MIME::Lite->new( 'From' =>'foo@foobar.com' 'To' => $info->{EmailAddress}, 'Subject' => $info->{EmailSubject}, 'Type' =>'multipart/mixed' ); $msg->attach(Type =>'TEXT', Data => $info->{EmailMessage} ); $msg->attach(Type =>$info->{MimeType}, Path => $info->{Attachment}, Filename => $info->{AttachmentName}, Disposition => 'attachment' ); $msg->send_by_sendmail('SetSender'=>1,'FromSender'=>'foo@foobar.com +'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Controlling e-mails sent per hour
by rob_au (Abbot) on Feb 06, 2004 at 05:26 UTC | |
|
•Re: Controlling e-mails sent per hour
by merlyn (Sage) on Feb 06, 2004 at 13:09 UTC | |
|
Re: Controlling e-mails sent per hour
by Ryszard (Priest) on Feb 06, 2004 at 10:14 UTC | |
|
Re: Controlling e-mails sent per hour
by Abigail-II (Bishop) on Feb 06, 2004 at 13:23 UTC | |
by diakonos (Hermit) on Feb 06, 2004 at 16:20 UTC | |
|
Re: Controlling e-mails sent per hour
by z3d (Scribe) on Feb 06, 2004 at 10:04 UTC | |
by z3d (Scribe) on Feb 06, 2004 at 15:07 UTC | |
|
Re: Controlling e-mails sent per hour
by graff (Chancellor) on Feb 06, 2004 at 03:35 UTC | |
by insite2000 (Acolyte) on Feb 06, 2004 at 03:42 UTC | |
|
Re: Controlling e-mails sent per hour
by punchcard_don (Beadle) on Feb 06, 2004 at 13:06 UTC | |
by bunnyman (Hermit) on Feb 06, 2004 at 17:29 UTC |