Updated email example with exception handling.