For some reason my e-mails no longer get sent. How can I find out why? The mail() function worked a few days ago. Is there any way to print the error?
The mail() function is up because I have no errors. A limit could be an explanation but then.. it is set to zero. No e-mail was sent from the server today.
Have you tried checking the response from the mail function in the script? It's pretty hard to break it, mind, and if its been working previously its probably upsteam from the function itself. What does your mail logs say happened to the mail? (/var/log/mail.log possibly, depending on your system)