No course users found to email
However, we have several users in the course. I'm guessing perhaps the function to retrieve users has changed in 1.9, so this is why it's failing? Anyone know how to fix this for 1.9?
TIA
I am new to moodle and I seem to be having the same issue. It appears the problem is related to the sort order option within the blocks/quickmail/email.php get_course_users() function on line 76.
Try changing line 76 as follows:
//Get list of users enrolled in the course including teachers and students
// if (!$courseusers = get_course_users($course->id, 'lastname')) {
// error('No course users found to email');
// }
// Modified
if (!$courseusers = get_course_users($course->id)) {
error('No course users found to email');
}
I also had to alter line 196 to fix another smaller error:
//$messagetext = messagetext."-------------------------------------------------\n";
// Modified
$messagetext = "----------------------------------------------------\n";
I have not fully tested these changes so please use with caution!!
Glenn
Thanks for sharing your workaround. So far, in my limited testing, this is working exactly as I need it to.
Brian
Later: Yep. When I added myself as teacher, I came up in the list. When I quickmailed myself, it was indeed very quick. I got both a message and a dispatch receipt.
Thanks to Glenn for the fix and Wen Hao for the adapted block.
The next trick would be to get Quickmail to retrieve all users when invoked from the home page. Right now it just retrieves Guest User {root@localhost}.
Anybody got any clues?
Something odd here
Jeff
No course users found to email
I've tried the fix mentioned earlier and the issue persists. Did I miss a step in fixing this?
It didn't work for me as well until I did this...
// Original
//if (!$courseusers = get_course_users($course->id, 'lastname')) {
//error('No course users found to email');
//}
// Modified
if (!$courseusers = get_course_users($course->id), ' ') {
error('No course users found to email');
}
...and I didn't see the 'Guest User' Mark referred to.
I know this is an old discussion, but I have just downloaded Quickmail and am having what appears to be a related issue. When I go to compose a message I don't see any users.
When I open email.php to make the modifications described here, I can't find the function or code listed in this discussion.
Any ideas????
Thx!
Found my problem - I need to set the Groups to No Groups under settings ... Doh!
What is the most recent version of Quickmail (and where can it be found), and what version of Moodle will it work with? I've read both 2.6 and 2.7, and it's not clear if any version works with Moodle beyond 1.9.8. We're contemplating an upgrade but are limited by this critical block.
I have a problem in quickmail block, particularly in history section.
When I go to history tab, unlike compose tab, the screen shows messed up real estate for all the blocks. (such as stretched Navigation bar and things like that). I assume that there's div problem but I can't pinpoint the bug. Anyone?
Thanks,