Add a more complete sample for email
Refactored event handlers into a object lookup structure