Fixing issue in undefined email
Change config to https