You need to study the logs in real time.
Get to a shell prompt.
Try these commands (the locations of the files might vary depending on your os).
tail -f /var/log/maillog
tail -f /var/log/exim_mainlog
"-f" is short for follow.
If you know what email address to expect. Do this:
tail -f /var/log/exim_mainlog | grep
mic@rosoft.com
Exim is SMTP maillog is for IMAP/POP3.
The error is what you should be interested in. Also, have you tried running the delivery troubleshooter, and making sure when you enter the email address specificed in the php script, that the server can actually mail it.