Added error log with timestamp to sendmail.php