You can use the User upload tool to set the mailformat field for all users. See here for more information: https://docs.moodle.org/39/en/Upload_users#Optional_user_fields
General help
Change users mail format (3.9)
This discussion has been locked so you can no longer reply to it.