redirect error to email message