I have some forms that are used to send an email to moderate numbers of addresses at a time. Because of this, the processing of the form takes more time than I'd like it to. I've tried a couple of things, but neither are working.
failure #1: modifying my php.ini file to tell sendmail to not try to process the mail immediately, but to just put it into the queue:
php.ini
sendmail_path = "/usr/sbin/sendmail -t -q"
rather than the default:
php.ini
sendmail_path = "/usr/sbin/sendmail -t -i"
failure #2: specifying the additional parameter in the mail() function itself:
mail($to, $subject, $body, $headers, '-q');
Neither approach works. No error message -- but the mail never gets delivered, nor does it ever even get put into the mail queue. Anybody know why? Am I doing something wrong? Any better suggestions?