Added missing call to $PAGE->set_url to emaillog.php.