Added HTML emails and a direct link to the error file