Díky Janovi za další krok na testovacím serveru k řešení na produkčním serveru. Viděl jsem na Trackeru, že problém s posílám na poslední verzi nikdo nehlásil. Na test serveru jsem měl SMTP správně, ale po úspěšném rozeslání notifikací z verze 3.6.2 můj webhoster zablokoval mailovku z podezření na spam. Zkoušel jsem to na vygenerovaném kurzu, takže to způsobil počet nedoručitelných zpráv. Proto to po upgradu se stejným nastavením nefungovalo
Finální příčina byla taková, že mám na produkčním serveru založené všechny uživatele s přednastavením notifikací pro blended learning. Všechno posílání jsem před pěti lety nastavil na minimum. Sice jsem nyní změnil výchozí nastavení, ale to se již na vytvořených účtech neprojeví. Vtipné bylo i to, že pro debug jsem použil starý testovací studentský účet, který měl to špatné přednastavení.
1) Správa stránek / Zprávy / Nastavení upozornění (/admin/message.php)
2) Informovat všechny, jak si to mají u sebe nastavit nebo to udělat kouzelným trikem v databázi (Předvolby / Uživatelský účet / Nastavení oznámení (message/notificationpreferences.php?userid=xxx)
Ohledně možnosti udělat to přes databázi cituji následující příspěvek. Potřeboval bych to ale asi upravit na reset podle aktuálního přednastavení, což tedy přenechám odborníkům. Sám to asi vyřeším videem pro studenty, aby si to nastavili jak chtějí.
-----------------------
Re: Reset Message & Notification preferences for all users
We had this same issue today (we are enabling the Mobile app and notifications, which were previously off and disabled for all users).
Fortuately for us it turned out we had never enabled access for users to change their own notification preferences, so updating the default settings will change it for all users
However in the process of thinking we might need to reset all users notification preferences we found the settings in the moodle database. As I came across this post trying to fix our issue I thought it might be useful to leave this information here in case its useful to anyone else.
The preferences are stored in the user_preferences table with the prefix of message_provider_mod for the setting name.
The query:
SELECT * FROM moodle.mdl_user_preferences where name like "message_provider_mod%";
will find all users with custom preferences (update for your database name and table prefix) if you delete these customised settings then users will fall back to the defaults until they change them again.
Of course - only delete items from the database if you are confident in what you are doing (and you've taken a backup!)