email authentication with SSL config option added