added email and configuration files.
fail when no configuration is found.