Here is how you can make invitation codes mandatory:
https://prnt.sc/gczzje (Details in the screenshot)
On some sites, PHP email function does not work. In which case you can use an SMTP plugin to send out emails.
Please feel free to contact us if there are any other queries.