Implement getting email functionality