See the Sending an email notification to the end user dynamically recipe in Chapter 2, Working with Notifications Using the SendGrid and Twilio Services.