Prompt
How do I get email and SMS alerts when my site is unavailable?
Latest observation
Oct 20, 2026
OpenAI APIWeb search: off
To get email and SMS alerts when your site goes down, you need two things:
- A monitoring service that checks your site regularly
- Alert channels connected to that service for email and SMS
Common ways to do it
Option 1: Use an uptime monitoring service
Popular choices:
- UptimeRobot
- Pingdom
- StatusCake
- Better Uptime
- Datadog / New Relic if you already use observability tools
Typical setup:
- Sign up for the service
- Add your website URL
- Choose check frequency, timeout, and failure threshold
- Configure notifications:
- Email: usually just verify your email address
- SMS: add a phone number, then connect an SMS provider or use the built-in SMS option if available
- Test by temporarily blocking the site or using a maintenance page
Option 2: Use your cloud provider’s monitoring
If your site runs on:
- AWS: CloudWatch Alarms + SNS
- Azure: Monitor + Action Groups
- Google Cloud: Cloud Monitoring + Notification Channels
These can alert via:
- SMS
- PagerDuty / Opsgenie / Slack, etc.
Recommended setup
A solid basic setup is:
- Monitor your homepage and a key health endpoint like
/health - Alert after 2–3 failed checks to reduce false alarms
- Send:
- Email to your team
- SMS only for critical alerts / on-call staff
If you want to build your own
You can create a simple script that:
- pings your site every minute
- sends email via SMTP or SendGrid
- sends SMS via Twilio
- runs from a server, cron job, or cloud function
Example components:
- Monitoring: cron + curl
- Email: SendGrid, Mailgun, Amazon SES
- SMS: Twilio
Best practices
- Monitor from multiple locations if possible
- Alert on both:
- total downtime
- slow response times
- Add a status page if you want to inform users
- Avoid alert spam with escalation rules and deduplication
- Test alerts periodically
If you want, I can give you:
- a step-by-step setup for a specific service like UptimeRobot or AWS, or
- a custom script that sends both email and SMS alerts.