email component working