in reply to sendmail in 1 millisecond

If you want your Perl program to spend less time sending mail, you have to let someone else spend the time doing it. That's what's happening when you let sendmail figure it all out. It's not sending the mail in a millisecond. It's queueing the mail in that long, after which your Perl program gets control again. sendmail does more work on its own.

--
brian d foy <brian@stonehenge.com>

Replies are listed 'Best First'.
Re^2: sendmail in 1 millisecond
by derby (Abbot) on Aug 15, 2005 at 13:29 UTC

    Of course brian is right ... you're going to have to work with the sendmail admin to ensure you have your local sendmail daemon configured correctly to support the queueing. Once that's done, you can use the -odd option to sendmail for the quickest async operation (all database lookups (DNS) are deferred until the queue is run). The downside to this approach is normally delayed delivery. It may take some time for the queue to be processed and hence your mail delivered.

    -derby