Any suggestion of a workaround: notifying new users of account details

Any suggestion of a workaround: notifying new users of account details

by Derek Chirnside -
Number of replies: 11

I've just had a look to see how tracker item http://tracker.moodle.org/browse/MDL-19390 is doing: Send email to new users added manually.

Say we create a few accounts, or a lot of accounts, does anyone have a way they let their users know their account details?

I've considered a cut and paste idea to send a message to everyone one at a time with only the username needing to be manually typed.

Any other suggestions?

I'm using Moodle 2.2 and 1.9.

-Derek

Average of ratings: -
In reply to Derek Chirnside

Re: Any suggestion of a workaround: notifying new users of account details

by Andrea Bicciolo -

A possible workaround is using Upload users feature. Omitting passwords and selecting "Create password if needed" will cause Moodle send out to new users cron based email containing credentials.

I recenly used the feature "Create password if needed" in Moodle 2.x. For 1.9 the setting is the same so you may give it a try.

Average of ratings: Useful (4)
In reply to Andrea Bicciolo

Re: Any suggestion of a workaround: notifying new users of account details

by Derek Chirnside -

Andrea!!  Who would have known!!

This is close, and a better work around than most.

This is the e-mail I got as a test user:

And yes, it is buried in the documentation.  smile

-Derek

In reply to Derek Chirnside

Re: Any suggestion of a workaround: notifying new users of account details

by Radhey Kulkarni -

Hi Derek,

I was trying to send my students mail containing their Username and Password . And those accounts are manually created by using uploading through CSV file .

I am putting a common password for all students and forced them to change it after first login.

The problem is i added some sort of code suggested by Iñaki but its not working for me. though that code is added its not triggering email when a new user is created . I had changed admin/tool/userupload.php file and  user/editadvanced.php but both are not working for me..

Kindly suggest how can i make that work ? or How u made that work ?

I am using moodle 2.3dev

Thanks ,

Radhey Kulkarni.

In reply to Radhey Kulkarni

Re: Any suggestion of a workaround: notifying new users of account details

by Derek Chirnside -

Radhey, this completely slipped by in my intray.  Sorry, can't help.

I have no access to change the code, I am just using plain vanilla Moodle, and in this case it works as Andrea said: leave the field blank and it sends a random password generated by the cron.

See http://docs.moodle.org/22/en/Upload_users#Fields_that_can_be_included

I'm not actually sure what code you are referring to.

And don't forget to vote for http://tracker.moodle.org/browse/MDL-19390

If you have code to help with this, it should be posted in the tracker in this item.

-Derek

In reply to Radhey Kulkarni

Re: Any suggestion of a workaround: notifying new users of account details

by Sandeep Gill -
Picture of Plugin developers

Hi Radhey,

You should use the original code of uloaduser.php and then just upload the csv with a blank password field. Select "generate password if required" from the dropdown list and upload those users. After you have done that just run the cron scripts 4-5 times and the log will show that the password email have been sent.

CRON: http://mydomain.com/admin/cron.php

 

Please let me know if that does not solve your problem.

 

Cheers

Sandeep

In reply to Sandeep Gill

Re: Any suggestion of a workaround: notifying new users of account details

by Justeena Zaki-Azat -

Sorry what are the Cron scripts and how do I use them?

In reply to Sandeep Gill

Re: Any suggestion of a workaround: notifying new users of account details

by Radhey Kulkarni -

Hi Sandeep,

 Sorry For being late to reply.Thanks for help. I tried using you way it Worked for me. but the problem i am facing is i cant send emails outside my organization domain

I used quite simillar process of setting a common password for all the student and checking from database if that is common password then then they will be redirected to change password page after first login. 

Like Suppose ABC is the organization i m working for and the official email id is like radhey@abc.com.  Method suggested by you and the method i have tried could not send emails to the users having email other than my organization radhey@gmail.com is not getting that email. Cron Script shows like Relaying Denied IP Lookup Failed....

Any Idea About this error ?

Thanks in Advance,

Regards ,

Radhey

In reply to Derek Chirnside

Solved: notifying new users of account details

by Ishant Saxena -

Hi friends..

 With the help of all of you .i have successfully solve this issue .

thanks again

and i'll post the whole process in my next post.

In reply to Ishant Saxena

Re: Solved: notifying new users of account details

by Ramon Puigdomenech -

Hi Ishant, you could create the post describing the process? I am very interested. thanks

In reply to Derek Chirnside

Re: Any suggestion of a workaround: notifying new users of account details

by Derek Chirnside -

Has anyone any ideas on a plugin to do this, ie no core hacks?

-Derek