implement email status api