Email Open and Click Alerts via SMS
Created by: Twilio
- Email
- SMS
- JavaScript
- Quick Deploy
(information)
Info
Regulations require that you first register your number to use these resources to send SMS traffic to US and Canadian mobile destinations. If you are sending to Canada or the US and have not already done so, please see our documentation to register your Twilio phone number or Toll-Free number before you use this template.
Receive real-time SMS notifications when recipients interact with your emails.
Using SendGrid's Event Webhook API, this template will monitor email open and click events, and send SMS alerts to a specified phone number when the events occur.
How it works:
- Uses Twilio Function's to host the webhook for SendGrid
- Uses SendGrid's Event Webhook to receive event notifications to the app. You'll need to copy your Functions-deployed URL and configure it as an event webhook under Mail Settings on your SendGrid dashboard.
- Sends out an SMS to a number when a SendGrid open or click event occurs
- When sending emails, you can use the categories field so that the SMS alert will show which category the email event is from.

Additional Resources
Want to learn more about building this application or extend its functionality? Check out these helpful tutorials:
- Receive SMS Alerts for Email Opens and Clicks with Twilio SendGrid and Node.js - A tutorial that walks through building this application from scratch, explaining each component and how they work together.
- Using Vibe Coding to Alter a Twilio Code Exchange Template - A creative coding session that builds upon this template to add advanced features
Quick Deploy to TwilioGet CodeUse Twilio CLI