Switched to use sys_get_temp_dir() to define which tempdir to use.
A stand-in for sendmail that will log all emails instead of sending them out. Use when debugging cron performance and output. References: MDL-12142 http://moodle.org/mod/forum/post.php?reply=349457