This is important as 50% of my students use hanmail.net (a Korean web mail) that rejects every email that moodle sends them. My inbox is flooded with email bounce notices.
Either way I am in desperate need of a solution.
I understand. I guess I'm in the queue since I have no knowledge about how to code or the time to learn (currently in graduate school as well as teaching full-time)
Matt, Howard,
I will try that in just a few minutes and get back to you. (I just woke up and need some coffee before I do this) - Hope I don't mess something up really bad!
Thanks for all the suggestions and help everyone.
Sean
I just realized I do have a few extra dollars in my paypal account and have sent a message to moodle.com/development. Anyhow hopefully it is within budget. I didn't realize that we could pay for features to be added (if they are important enouogh).
Sean
the total cost was us$150 - which was a little expensive for a poor graduate student, fortunately I have two other graduate student friends who split the cost with me.
According to Martin this feature will be distributed in moodle 1.5 but if you really need it now send me an email eslteacher at gmail.com and I will forward the files to you. If you would like to help up defer the cost you can donate to my paypal account - link on my blog right sidebar - and I will split it with my friends. If you don't have any spare money, don't worry I'll send you the files regardless.
donation appreciated, but not required.
Sean
This hack will be added to 1.4 cvs later today. One of the other contributers got an email in response to a query that indicated there was an incompatibility with some recent forum changes. Basically Martin is going to fix that and add this to the CVS.
So I guess you really do not need to wait for 1.5 and thus you no longer need to get it from me or even consider donating.
Sean
- config-dist.php (contains information about the config you need to do)
- lang/en/moodle.php
- lib/moodlelib.php
- user/edit.php
- login/signup.php
$CFG->allowemailaddresses = "myschool.edu.au hotmail.com";
$CFG->denyemailaddresses = "hotmail.com yahoo.com";
This is definately the best feature in MOODLE, IMHO.
I added a lot of banned email addressses that were
1) common mistakes of the main email domain that students use
2) mobile phone email domains, because they can not cope with the encoding that my moodle is using.
As The Liguist says, this seemed like a great feature.
Then one of my students used one of those banned domains. Then, instead of being able to login he (we) reached a page which said 'instructions for how to login have been sent to you'.
And on the user page, I found that his username required confirmation.
But the strange things is I am using IMAP, so there should be no need for confirmation.
I had imagined that on an IMAP confirmation system, if a student entered a banned email address they would simply be sent to a page where they are told that the email address they have entered is banned.
Is is possible that when a student enters a banned email address moodle assumes that the certification method is by email?
Timothy
in user/edit.php find the line...
if (empty($usernew->email))
$err["email"] = get_string("missingemail");
after this line add something like...
if (!strpos($usernew->email, 'hanmail.net'))
$err["email"] = get_string("missingemail");
I haven't tried it, but the idea is that if the email contains the offending domain name then it will be treated like a missing email. You *could* add a new, more sensible, error message string of course. I don't think that this will work for email registrations, but I haven't got a site with that enabled to see how it works.
Don't shout at me if it all goes horribly wrong
if (!strpos($usernew->email, 'hanmail.net'))
$err["email"] = get_string("missingemail");
Or just really hack it (and possibly make it more informative) to say:
$err["email"] = "We are sorry, @hanmail.net email addresses are not accepted";
??
I ask because I probably may do my fair share of "customizations" and I'm curious as to whether or not the above approach is appropriate (assuming get_string() returns a general string...and my php coding is valid?)?
-Matt
$err->email = get_string("missingemail");
if (!strpos($usernew->email, 'seans-english.com'))
$err["email"] = get_string("missingemail");
I also tried putting the second if statement before the first (I'll try anything at this point) and when I submitted a registration the email was sent as well.
I do really appreciate all the help.
Thank-you
Sean
If you can figure it out (there may be clues in your bounce messages or you could even just ask someone at hanmail.net) then perhaps that problem may be more common and therefore the hypothetical bug would be a higher priority.
You could also try simply asking hanmail.net to stop bouncing your mail.
I asked my wife (Korean) to send an email to hanmail on my behalf. She told me that hanmail even has a bad reputation within Korea for bouncing email. It's so bad that basically all shopping sites do not accept them.
After we sent the email she told me it was probably a waste of time, but I am hopeful.
Sean