Sends an email to a specified email address and creates an error id when a program crashes