[Done] Sending email when error happend if "EmailError" is activated.