Added example code to get an email by ID