When sending assignment notifications, update "mailed" flag before trying to mail them.  This helps prevent multiple mail problems if cron or smtp has major problems.
When sending assignment notifications, update "mailed" flag before trying
to mail them.  This helps prevent multiple mail problems if cron or
smtp has major problems.


http://moodle.org/mod/forum/discuss.php?d=8821

dilawar/moodle