Students who don't have e-mail addresses

Students who don't have e-mail addresses

by Sallie Draper -
Number of replies: 5
Greetings,

I've just started using Moodle at the 4th to 8th grade level. It is a big shift from the adult corporate world I normally work with and has led to a few account set-up questions. Can anyone give suggestions on how best to handle a Moodle install for young students who do not have nor need e-mail addresses? I tried setting them up with bogus e-mail addresses, but then I (the site admin) get tons of bounced e-mail alert messages - when they submit a forum post and subscribe to the forum or when they send messages to others who aren't online at the the time.

Surely there must be a way to turnoff the e-mail requirement and auto alerts for some accounts, but not for all?? I and the other teachers still need to get e-mail of forum posts, etc.

Any help or direction you can provide would be greatly appreciated.

Sallie Draper


Average of ratings: -
In reply to Sallie Draper

Re: Students who don't have e-mail addresses

by Art Lader -

Hi, Sallie,

This MySQL query will disable all email accounts:
UPDATE `mdl_user` SET maildisplay = '0'


If you were to use the above, your teachers could then go back into their profiles and enable their email, of course.

Obviously not exactly what you are looking for, but I am sure that someone can post a similar query that will do what you want to do.

Anyone?

-- Art
In reply to Art Lader

Re: Students who don't have e-mail addresses

by Doug Holton -
Yeah I don't understand too why even if you turn on the "no authentication" module, they still have to fill out a required email address.

Plus, when they click on a course and create an account, it doesn't enroll them in that course or ask them if they want to enroll in that course.
They are just sent to the user profile form where again it requires all this stuff like email address, location, etc.


In reply to Art Lader

Re: Students who don't have e-mail addresses

by Mark Lew -

We address students email issues two ways

1) We set an email of noemail@domain.com. If you add students through a csv, students/users can share the same email addresses without it kicking out.  It can be a pain if you only have to add one or two students, but it works.  If you add a single student through account users then emails will have to differ.

2) We use studentusername@domain.com. Becaue student id's/emails are configured differently than teacher id's/email addresses and students email addresses do not exist in the email system, they just go into oblivion.

In reply to Sallie Draper

Re: Students who don't have e-mail addresses

by Ken Wilson -
Hi Sallie

You may want to look at this (somewhat lively) thread which discussed this same problem. If you still want to avoid having to enter the email address, then make these changes by commenting-out lines in the code which check for the email address (add '//' to the start of the lines):

1. moodle/user/editlib.php line 84 add // to the start of the line like this:
//$mform->addRule('email', $strrequired, 'required', null, 'client');

2. moodle/user/edit_form.php line 104 add // to the start of the line like this:
//$errors['email'] = get_string('invalidemail');

3. moodle/user/editadvancedform.php line 146 add // to the start of the line like this:
//$err['email'] = get_string('invalidemail');

Two big health warnings:
- make backups of the original files first before saving your changes.
- the line numbers are for Moodle 1.9, so may be different for your version. Just search to find the text of the line instead.
- these changes may cause errors in emails which are sent as a result of grading feedback or activity work, so please test on a non-production system first.

Finally, there is a very good reason why Moodle developers have designated email as a required field, so be careful when changing these default settings as it could break things we're not aware of.

Hope this helps!

Ken


In reply to Ken Wilson

Re: Students who don't have e-mail addresses

by stefano federici -

I would like to have a dummy email address (say dummy@noemail.com) that a group of students can use so that every new user that will use this adress is automatically confirmed.

By doing this I can setup quasi-anonymous quizzies (that are not allowed in moodle) by saying to the students to put dummy data in the registration form and allowing them to immediately enter the quiz without having to insert a real email or wait for my manual confirmation (that would be necessary as the email is faked).

As of now I have no clue on where to put my hands. Is there someone that could suggest which scripts (and functions) should be modified and how? Even general directions would be a good start to me.

Note: I cannot use bulk registration as I don't know the students (they being students of other courses to which I give just a seminar to collect their answer to quizzies) and, more important, I need anonymous quizzies.