Email Digests forcing?

Email Digests forcing?

by Sean S -
Number of replies: 10
Is there some way that I can have new users automatically recieve digests rather than individual emails? If it isn't built into moodle, is there a hack available for this?
Average of ratings: -
In reply to Sean S

Re: Email Digests forcing?

by Sean S -
*bump*

Still looking for an answer to this.
In reply to Sean S

Re: Email Digests forcing?

by Steve Hyndman -

If you open your "users" table in the database and change the default value of "maildigest" from "0" to "1", then when new users create an account the daily digests selection will be selected by default. This will not change anything for current users...only users who create accounts after you make this change.

Thanks to Przemyslaw for pointing these settings out to me. I have also changed the default value of "Forum auto-subscribe" so that students don't get subscribed to a forum when they post unless they choose to be subscribed first.

Steve

In reply to Steve Hyndman

Re: Email Digests forcing?

by Sean S -
I looked in the database, but I couldn't find a users table.

I did find

mdl_user










mdl_user_admins










mdl_user_coursecreators










mdl_user_preferences










mdl_user_students










mdl_user_teachers

In reply to Sean S

Re: Email Digests forcing?

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
You need to select mdl-user then follow Steve's advice (as I've just done - thanks Steve! smile)
In reply to Helen Foster

Re: Email Digests forcing?

by Steve Hyndman -

That's correct, it's mdl_user. You're welcome...sorry for the confusion.

Steve

In reply to Helen Foster

Re: Email Digests forcing?

by Przemyslaw Stencel -
Yes, and once you've changed the mdl_user table, you can edit the user/edit.html file. Find the following lines:

<tr valign=top>
    <td align=right><p><?php ("emailformat") ?>:</td>
    <td><?php
    unset($choices);
    $choices["0"] = get_string("textformat");
    $choices["1"] = get_string("htmlformat");
    choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
    </td>
</tr>

and comment them out. This will make it impossible for your users to change the setting later.
In reply to Helen Foster

Re: Email Digests forcing?

by Sean S -
Thanks I got it taken care of now. Thanks a bunch.
In reply to Sean S

Re: Email Digests forcing?

by Sean S -
Just used this again on a fresh installation and was thinking that this would be a really great feature to have a GUI...

Does anyone else agree? if so then I'll submit a request.
In reply to Sean S

Re: Email Digests forcing?

by Sean S -
Hmmm... yet again I had to search the forums to find this. I really think this would be a great feature to add to the variables page.
In reply to Steve Hyndman

Re: Email Digests forcing?

by Sean S -
Yet again, I can't believe this hasn't made it to the GUI.