MDL-31202 do not try sending emails to invalid addresses
commit5125c0e332c3090126df6804bdf56f606f272ecb
authorPetr Skoda <commits@skodak.org>
Sat, 21 Jan 2012 14:21:08 +0000 (21 15:21 +0100)
committerSam Hemelryk <sam@moodle.com>
Mon, 23 Jan 2012 06:24:43 +0000 (23 14:24 +0800)
tree2e771880924b37c2dd53dbafd509520eaaf016ed
parenta141bd9ca2a941826da2cfa41830cfd069850864
MDL-31202 do not try sending emails to invalid addresses

The use of mtrace() in email_to_user() is most probably incorrect, I am going to use it only in CLI scripts (which includes cron). This should not be considered a security issue because we should be already validating emails when accepting them from untrusted users.
lib/moodlelib.php