Thanks for the reply.
I tried that, but the mail function would work afterwards.
I have a general thought though that there is a way to configure sendmail itself such that the delay doesn't happen
The reason I think this is that I've had the mail() function work very fast on a server (using it inside a loop) with the default setting (/usr/sbin/sendmail -t -i). In other words, sending 100 emails in 1 second.
Does anyone have any insight as to why mail() would work slow on one server (a fast server with fast connection speed), and very fast on another, both having the same sendmail value (/usr/sbin/sendmail -t -i) ?