I just upload students from a spreadsheet file setting the emailstop value at 1. Than, when your CSV is excepted it will ask you for a default email. I use temp@temp.com, you could use anything. This works fine.
You can get more information here:
http://docs.moodle.org/en/Upload_users
I'm using Moodle 2.0.2.
Is there still no way to simply not require an email address? I have this need as well. Users are created through an upload from Active Directory and authenticated through LDAP, and some do not have email addresses.
I followed the instructions found in this thread: http://moodle.org/mod/forum/discuss.php?d=155913
I was able to make the profile page *appear* that email was not required, as it no longer shows up in red with an asterisk, etc. However, you still cannot save a profile without an email address - it just gives you the "invalid email address" prompt. So it is still a required field, even though it says it isn't.
Also, I could not find the moodlelib.php file noted in this discussion. Perhaps it has changed in 2.x?
Thanks for any help,
Dan
Hi,
Thanks to everyone who have offered the above workarounds. For data confidentiality reasons I also need to configure Moodle so that our users cannot see eachothers email addresses.
I have just tried the PHP hacks using Moodle 2.03 and couldn't get this to work. I then requested help from Sean Keogh from our Moodle Partner Remote Learner who advised that a setting could be changed within Moodle's internal user database:
You can alter the field called emaildisplay. It defaults to the value 2 (presumably to allow emails to be visible).
However, this default can be changed in to 0, so that whenever a new account is created, whether manually or via the databae authentication, the email address of the user should be hidden from all other users.
Where there were existing users in the database whose record for emaildisplay was set to 2 Sean did a search and replace on them to make them all have 0 in that field. The post below by Noveck Gowandan also suggest this as a solution:
http://moodle.org/mod/forum/discuss.php?d=67723#p617062
~thomas