Email-based self-registration
From MoodleDocs
Location: Administration > Users > Authentication
With this method, users can create their own accounts. They then receive an email at the address they specified in their account profile to confirm their account.
Email-based self-registration should be selected from the self registration drop-down menu in the common settings section on the authentication page.
Particular email domains may be allowed or denied via Administration > Server > Email.