Fixed crash in send_mail handlers