Texts from e-mail

E-mail alerts, by text from your own phone

Nothing to install · any device that sends e-mail
A webhook with an e-mail address
Make one in the dashboard

When all a device can do is send an e-mail

A NAS, a UPS, a camera, a router, a printer, a backup job, cron or an older monitoring tool can often only send an e-mail when something happens. Give it the e-mail address of a webhook, and your own Android phone texts the alert to you from your own number. Nothing to install on the device.

1. Make a webhook that accepts e-mail

  1. In the dashboard, open Apps, Webhooks and click New webhook. Pick Something that sends e-mail. (In Add an app it's Anything that can send an e-mail.)
  2. Add the numbers that should get the texts: yours, or your colleagues'. Up to 10.
  3. Click Create the webhook. E-mail is turned on, and the webhook's e-mail address is shown with a Copy button. On a webhook you made before, open Address and setup and turn on Accept e-mail.

The address looks like this:

3f1c0a9be27d44a6b5c8e0f7a1d2c3b4e5f60718293a4b5c@in.smstunnel.io

2. Point the device at the address

In the device's or the tool's alert settings, add the address as a recipient, the way you would add your own e-mail address. Where to find it (the names can differ between versions):

  • Synology DSM: Control Panel, Notification, Email. Set up the sender first, then add the address to a recipient profile and click Send Test Email.
  • QNAP QTS: Notification Center. Add the e-mail account it sends from under Service Account and Device Pairing, then add the address as a recipient of a rule under System Notification Rules.
  • APC UPS with a network card: Configuration, Notification, E-mail, Recipients (Administration instead of Configuration on older firmware).
  • cron: put MAILTO at the top of the crontab. cron sends the output of each job, so a job that prints only when it fails texts you only then.
  • Monitoring tools (Zabbix, Nagios, Proxmox and others): add an e-mail contact, media type or notification target with the address.
crontab: a text when the nightly backup prints an error
MAILTO=3f1c0a9be27d44a6b5c8e0f7a1d2c3b4e5f60718293a4b5c@in.smstunnel.io
0 2 * * * /usr/local/bin/nightly-backup.sh

The device still sends e-mail its own way: through its SMTP settings (often your mail provider's), or through a mail program on the machine for cron (for example msmtp or Postfix). If it can send you an e-mail today, it can send this one.

What the texts look like

The subject, then the first lines of the e-mail, at most 3 SMS parts: a longer one is cut and ends with three dots. Quoted replies and the signature are left out. For example:

Backup failed on nas-01
The nightly backup stopped at 02:14: the destination could not be reached.

Prefer your own words? Write the webhook's text with {{subject}}, {{text}} and {{from}}, for example NAS: {{subject}}.

Worth knowing

  • The address works like a password. Whoever has it can text the webhook's numbers, never any other number. If it gets out, make a new address for the webhook (the old one stops at once) and give the new one to your devices.
  • An e-mail never chooses who gets the text. The numbers are the ones saved with the webhook; a number in the e-mail is just words.
  • Only from these senders (optional): addresses like nas@example.com or whole domains like @example.com. It's a guard against mistakes, not a lock, and it also needs the sender's mail server to pass SPF or DKIM. The secret address is what keeps others out.
  • The webhook's limit per hour counts e-mails and calls to its web address together, so a storm of alerts can't use up your texts.
  • One e-mail, one text to each number, even if it's delivered twice. Each text counts like any other text of your plan.
  • Keep alerts small. An e-mail over 150 KB is returned to the sender instead of becoming a text, so leave out big attachments and pictures.
  • Nothing of the e-mail is kept but the text sent from your phone, like any other text. E-mails marked as spam or as carrying a virus are dropped.
  • Phone offline? The text waits and goes out as soon as the phone is back.

If no text comes

  • Check that Accept e-mail is on for the webhook, and that the webhook isn't paused.
  • Look at the webhook in the dashboard: it shows how many calls it had this hour against its limit.
  • With a list of senders, check that the device sends from an address on it.
  • Send a test from the device and look at its own log: some devices need their SMTP settings filled in first.
  • An attachment can make the e-mail larger than 150 KB: send the alert without it.

Build it with an AI assistant

Copy this prompt into Claude, ChatGPT, Cursor or Copilot and replace the part in [brackets]. Don't paste your API key into the chat: the prompt doesn't need it.

Help me get a text from my own phone when a device or a tool that can only send e-mail raises an alert, with SMSTunnel.

About SMSTunnel (https://smstunnel.io): my own apps and tools hand text messages (SMS) to my SMSTunnel account, and my own Android phone sends them from my own number, on my own SIM and plan. The phone runs the SMSTunnel app from Google Play (https://play.google.com/store/apps/details?id=io.smstunnel.app), signed in to my account.

What I want: [describe what should send a text, to whom, and when]

How it works:
- In the SMSTunnel dashboard (https://dashboard.smstunnel.io/apps/webhooks?new=email), make a webhook for "Something that sends e-mail": its numbers are the ones that get the texts. Turn on "Accept e-mail" and copy its e-mail address (it looks like 3f1c0a9be27d44a6b5c8e0f7a1d2c3b4e5f60718293a4b5c@in.smstunnel.io).
- In the device's or tool's alert settings, add that address as a recipient (Synology DSM: Control Panel, Notification, Email; QNAP: Notification Center, System Notification Rules; an APC network card: Configuration, Notification, E-mail, Recipients; cron: MAILTO; a monitoring tool: an e-mail contact or media type). The device still needs a way to send e-mail: its own SMTP settings, for example your mail provider's.
- Each e-mail becomes one text to each of the webhook's numbers: the subject, then the first lines, at most 3 SMS parts. The webhook's own text can use {{subject}}, {{text}} and {{from}}.
- The address works like a password. The e-mail can never choose who gets texted: the numbers are the webhook's. "Only from these senders" is a guard against mistakes and needs the sender to pass SPF or DKIM.
- If no text comes: check that "Accept e-mail" is on, the limit per hour, the list of senders, and that the e-mail is under 150 KB (no big attachments).

Rules for your answer:
- Do not ask for my SMSTunnel password or API key and do not put a real key in your answer; I will not paste it in this chat.
- Phone numbers must be in international format (+ and the country code).
- Help me test it with my own number first.
- Only send texts people expect from me. No unsolicited texts.
- The e-mail address holds the webhook's secret: help me keep it out of shared files and screenshots.

Responsible use

Built for alerts to yourself and your team, and texts people expect from you. One text goes to one number. Sending unsolicited messages from a consumer SIM generally breaches mobile carrier terms of service.

Synology, QNAP and APC are trademarks of their respective owners. SMSTunnel is a third-party integration and is not affiliated with, endorsed by, or sponsored by their respective owners.

No phone paired yet?

Install the Android app and sign in with your account, and you're ready in about a minute.

Get it on Google Play