Added some error handling to the emails.  Fixed problem with settings page