jd_jd has asked for the wisdom of the Perl Monks concerning the following question:
It's never been blazing fast, but always got the job done. Just recently however, I noticed things have slowed way down. I have to wait forever just to send one e-mail. If I try to send 3 or 4 e-mails, the browser window will usually time out waiting for the script to finish.#begin code# my $mail_prog = "/usr/sbin/sendmail"; my $to = $txtnumber; my $reply_to = $txtnumber; my $from = $txtnumber; open (MAIL, "|$mail_prog -t -n -oi"); print MAIL "To: $to <$to>\n"; print MAIL "Reply-to: $reply_to <$reply_to>\n"; print MAIL "From: $from <$from>\n"; print MAIL "Subject: $subject\n"; print MAIL "\n\n"; print MAIL "$message\n"; close(MAIL); #end code#
Edited by planetscape - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sendmail code running extremely slow
by sgifford (Prior) on Jun 15, 2006 at 01:34 UTC | |
by jd_jd (Initiate) on Jun 15, 2006 at 03:14 UTC | |
by sgifford (Prior) on Jun 15, 2006 at 05:05 UTC | |
|
Re: sendmail code running extremely slow
by graff (Chancellor) on Jun 15, 2006 at 04:07 UTC | |
|
Re: sendmail code running extremely slow
by graff (Chancellor) on Jun 15, 2006 at 04:09 UTC |