Text yourself from a script now that email-to-text is gone

Yes. Homing Pigeon (homingpigeon.dev) lets your script text your own phone with one call, in place of the email it sent to your carrier's gateway address. Your coding agent can make the change in the script you already have.

What to tell your agent

Use Homing Pigeon to text me instead of emailing my number at txt.att.net.

Your agent asks for your number, you read back the six-digit code, and it does the rest.

How it works in code

After pip install homingpigeondev and verifying your phone, this is the whole alert:

import datetime
import homingpigeondev

homingpigeondev.send("Nightly backup failed.", idempotency_key=f"backup-{datetime.date.today()}")

It replaces the block that emailed your number's gateway address, which usually looks something like this:

import os, smtplib
from email.message import EmailMessage

msg = EmailMessage()
msg["From"] = "me@example.com"
msg["To"] = "5551234567@txt.att.net"
msg.set_content("Nightly backup failed.")

with smtplib.SMTP_SSL("smtp.example.com", 465) as smtp:
    smtp.login("me@example.com", os.environ["SMTP_PASSWORD"])
    smtp.send_message(msg)

Good to know

  • AT&T shut down its email-to-text gateways, txt.att.net and mms.att.net, on June 17, 2025. The Cricket and FirstNet gateways were shut down too.
  • Gateway addresses at other carriers, such as tmomail.net and vtext.com, are unreliable as well, so it is worth moving a script off them before it goes quiet.
  • With Homing Pigeon there is no gateway address to look up and no mail server or password in your script. To verify your phone, run python -m homingpigeondev verify +15551234567, then run it again with the six-digit code it texts you.
  • If a shell script piped its alert to mail, install the command with npm install -g homingpigeondev and use homingpigeon send "Nightly backup failed." in that line instead.
  • The date in the idempotency key means a retry or a rerun never texts you twice on the same day.
  • Messages are limited to 480 characters and go only to the US mobile number you verified. Keep them plain, with no links. Carriers can still filter or delay any text, so delivery is not guaranteed. homingpigeondev.status() shows what happened to your last alert.

Get started

Add Homing Pigeon to Claude Code, then ask for what you want:

claude mcp add homingpigeondev -- npx -y homingpigeondev mcp

You get 50 free texts every month, on US mobile numbers. See more use cases.