some automation functions to grab emails from students