Middleware examples in chapter 10 and sending emails in chapter 11