in reply to Re: sendmail code running extremely slow
in thread sendmail code running extremely slow

Unfortunately, I am the admin of this server. I can run the mail command from the CLI and it gets sent in a split second. It's just the mail code within the perl script. I tried the -oDeliveryMode=b option, but it didn't seem to make it run faster.
  • Comment on Re^2: sendmail code running extremely slow

Replies are listed 'Best First'.
Re^3: sendmail code running extremely slow
by sgifford (Prior) on Jun 15, 2006 at 05:05 UTC
    There should be no real difference between running from the command-line and from a Perl script. If you run your script from the command-line, does the message take a long time to send? What about if you try a second time? What if you switch to the Web server user before doing so? Do you do anything "weird" in your Web server setup, like chroot? What shows up in your Web server log? In your mail server log? Do you see the exact same effect if you run the small test script you included in your OP, both running from the command-line and the Web server?