In this Try It Out, you see how to write exception-handling code to catch problems with sending e-mail. These problems may occur when the mail server is down, for example. To simulate a broken mail server, you’ll temporarily use a nonexistent mail server name causing your code to crash.