I am running moodle 3.5.3 LTS an activate self registration.
When an user tries to create a an account, the following error happened:
More information about this error
Error code: auth_emailnoemail
line 482 of /lib/setuplib.php: moodle_exception thrown
line 142 of /auth/email/auth.php: call to print_error()
line 99 of /auth/email/auth.php: call to auth_plugin_email->user_signup_with_confirmation()
line 89 of /login/signup.php: call to auth_plugin_email->user_signup()
When I execute the following php script, the mail is sent without error:
mail("email@example.com","My subject","this is a test from php mail function");
I can send successfully mail from the command line using the mail command:
mail -s "Hello World" firstname.lastname@example.org
What should I do to send mails?
NB: enabling 'debugsmtp' setting can be helpful to debug emails issues.