DominaresTools

All tools / Email & messaging

cleartosend

Nothing reaches a customer's phone or inbox unless every rule you set says yes.

Buy cleartosend for $99

One payment of $99, plus sales tax where it applies, and every future update. Delivered as a private GitHub repository you're invited to.

Runs inside Lina. Extracted from the outbound send gate in Lina, which checks opt-outs, quiet hours and suppression before a text goes out.

See it work

cleartosend 1.1.2dry run
cleartosend check --channel sms --to "(555) 123-0000" --body "Your appointment is tomorrow at 10:00." --status pending --at 2026-06-22T22:30
NOT clear to send: sms to (555) 123-0000 at 2026-06-22 22:30 EDT
  - not_approved: nobody has approved it, and the policy does not allow auto_send
  - quiet_hours: it is quiet hours for the recipient

cleartosend queue approve "$ID" --by dana
approved t_c101d092e7e3457c; the next sweep sends it if every rule passes

cleartosend queue sweep --sender stdout --at 2026-06-22T22:30
sent 0, held 1, skipped 0, failed 0
  t_c101d092e7e3457c  held: quiet_hours: it is quiet hours for the recipient

cleartosend queue sweep --sender stdout --at 2026-06-23T10:00
-> sms to (555) 123-0000: Your appointment is tomorrow at 10:00.
sent 1, held 0, skipped 0, failed 0

cleartosend reply --from "(555) 123-0000" --text "please take me off your list"
(555) 123-0000 asked to stop: now suppressed

cleartosend check --channel sms --to "555-123-0000" --at 2026-06-23T10:00
NOT clear to send: sms to 555-123-0000 at 2026-06-23 10:00 EDT
  - suppressed: the recipient is on the suppression list

cleartosend audit cleartosend/examples/reminders_before.py
cleartosend/examples/reminders_before.py:10:9: twilio-sdk: Twilio send outside the gate: client.messages.create(...)
1 send(s) outside the gate in 1 file(s)
Dry run, nothing is really sent: cleartosend 1.1.2, run on 2026-10-05. A text queued beforehand, the shipped example policy with the "stdout" sender, which prints a text instead of sending it; times are set with --at.

What it does

cleartosend puts one gate in front of every text, email and call your software sends. Approval, opt-outs, quiet hours, calling hours and daily caps are checked before anything reaches a provider, and an audit finds the code that calls Twilio, SMTP or an email API without asking the gate. It can also hold a message for a later time and plan a text to a whole list before anyone is reached.

Every rule in one gate
A message goes out only if it is approved, its channel is on, the recipient has not opted out, it is outside quiet hours (and inside calling hours for a call) and the daily cap allows it. A refusal names every rule that failed, not just the first.
Held, not dropped
A message stopped by quiet hours, calling hours, a daily cap or a provider that isn't set up is held and goes out on a later sweep. The time zone is required; there is no default.
No double sends
A task is saved as sending before the provider is called, the sweep takes a lock, and status changes are compare-and-set. A crash leaves a task for you to settle, never a second send.
Opt-outs read from real replies
Carrier keywords such as STOP, UNSUBSCRIBE and REVOKE, short replies like "please stop" and sentences like "quit texting me", while "remove my late fee" and "stop the noise next door" are left alone. An opt-out that cannot be recorded raises an error instead of reporting success.
A suppression list that fails closed
Phone numbers are stored as digits with the country code, and email addresses lowercased without display names. If the list cannot be read, nothing is sent until it can.
An audit for sends that skip the gate
cleartosend audit reads your Python and reports file:line for direct Twilio, SMTP, Django, SendGrid, Resend, SES and other provider calls, and exits non-zero so it can run in CI. A pytest helper runs the same check in your test suite.
Send later
Hold a task until a time you give. A sweep leaves it alone until then, and stale_after_hours holds one that has waited too long for a person instead of sending it late. queue scheduled and queue stuck show what is waiting and what is stuck.
A text to a whole list
broadcast plan shows who would be reached and who would not and why (no number, opted out, duplicate, a missing merge field, too long, an unknown time zone), how many SMS segments it is, and what quiet hours would hold. broadcast submit refuses unless the plan is the one a person approved.
Stops on a dead provider
The command-line sweep stops after 5 failed sends in a row (--halt-after changes it), and a failed send can be tried again by a named person without anyone being texted twice.
Senders and storage you can swap
Twilio SMS and voice (Messaging Services included) and email through Resend or SMTP, on the standard library with no SDK. SQLite is the default store; any other provider or database plugs in through a small protocol.

What you get

cleartosend 1.1.2: the Python library and the cleartosend command, with 572 automated tests.

A commercial license. Use it and change it in your own projects and your clients' projects. Don't share or resell the source. Read the license.

Every update. New versions land in the same repository; git pull to get them.

Requirements

Python 3.10 or newer. The Python standard library, with SQLite as the default store. Sending through Twilio or Resend needs your own account with them.

How buying works

  1. Enter your GitHub username. You'll see the account before you pay, so you can check it's yours.
  2. Pay $99, plus any sales tax shown at checkout, on Stripe's checkout page.
  3. Accept the invitation GitHub emails you. Signed in as that account, you'll also find it at github.com/dominares-tools/cleartosend/invitations. Invitations expire after 7 days; you can get a new one any time.
  4. Clone and install:
    git clone https://github.com/dominares-tools/cleartosend.git

    Private repo: sign in to GitHub on this computer first. Run gh auth login and choose HTTPS, or give git a personal access token when it asks for a password. To use an SSH key instead, clone git@github.com:dominares-tools/cleartosend.git.

    python3 -m venv .venv && . .venv/bin/activate
    pip install ./cleartosend

Questions

Do I need GitHub?

Yes. Access is a read-only invitation to a private repository, sent to the GitHub account you choose.

Can I get a refund?

Yes, within 14 days, no questions asked. Access ends when the refund goes through. Refund policy.

Who takes the payment?

Payments are handled by Stripe, which works out sales tax. Your receipt and card statement show Link (LINK.COM*), Stripe's checkout service.

Something wrong?

Email support@dominares.org. Every buyer of a tool shares its repository, so support happens by email rather than in GitHub issues.