Added email pulling function to admin side