Add mail permission, add fix on client init, add testmail button.