Move email to functions.inc.php