Made the emailing more secure
Changed the error log email