testing function to verify that email works