Added an email sender when something goes wrong.
Changed the email sender stuff.