I have a weird problem. Using the mail() function and a local Postfix on the server. When Postfix is running, mail gets sent just fine but if I stop Postfix mail() still returns true but no e-mails are obviously sent and no error gets logged anywhere.
Code for sending:
echo $accepted; //Returns 0
$accepted = mail($to, $subject, $message, $headers);
echo $accepted; //Returns 1
No other MTAs are running at the server.
Is there any good way of debugging this?