#875: Add an anti-CSRF referrer check to email sending in misc.php.