Convert email to lower case to prevent case errors
Refactor of DI for email templates path
Added more tests
Refactor error message management