SMS Administration
To send SMS messages from Jethro, you need to:
- Sign up to, enable and configure a SMS provider
- Configure who SMSes appear to come from in the 'sender' settings
- Grant users the SMS - send permission
Configuring a SMS Provider
In Admin → System Configuration:
- ensure the SMS feature is enabled under Enabled Features

- click SMS Gateway to scroll down to the SMS settings.
In the SMS Gateway section, the first section shows whether your provider is connected. Initially it will report "Not configured", with instructions on how to proceed:

You now need to obtain an API key from your preferred provider, and enter the API key into the relevant setting.
Jethro SMS settings may be set either on the server in conf.php, or Admin → System Configuration. So these are equivalent:
SMS_VERBOSEinconf.php- Sms Verbosein the config page
If both are set conf.php takes precedent.
Jethro sends SMSes via a SMS provider service, which you will need to sign up to (some hosted deployments include a provider account). Jethro supports:
- 5centSMS - https://5centsms.com.au
- Cellcast - https://www.cellcast.com
- MobileMessage - https://www.mobilemessage.com.au
SMS Provider Capability Matrix
| Capability | 5Cent v5 | Cellcast | MobileMessage | 5Cent v4 |
|---|---|---|---|---|
| Get Balance Query the account balance (remaining SMS credits). | ✅ | ✅ | ✅ | ✅ |
| Get Sender IDs List registered alphanumeric sender IDs. | ✅ | ✅ (business names) | ✅ (no ACMA flag exposed) | — |
| Deferred Send Schedule a message for future delivery via a sendAt timestamp. | ✅ | ✅ | ✅ (schedule >60 s ahead) | — |
| Deferred Send Cancel Cancel a previously scheduled message before delivery. | ✅ | ✅ | ✅ | — |
| Register Sender Number Register a phone number as a sender. Verification may be via OTP or out-of-band link. | ✅ | ✅ (OTP) | ✅ (verification link) | — |
| Register Sender ID Register a sender ID (business identity) with the upstream gateway. | ✅ | ✅ | — (dashboard / ACMA) | — |
| List Opt-Outs List phone numbers that have opted out of messages. | ✅ | ✅ | ✅ | — |
| Remove Opt-Out Remove a number from the upstream opt-out list. | ✅ | — | ✅ | — |
| Batch Delivery Query One query returning recent delivery statuses for all messages. | ✅ | ✅ | ✅ | — |
| Import History Import / sync SMS history. | ✅ partial - senders not imported | ✅ | ✅ | — |
How far ahead a send can be scheduled: 365 days (5CentSMS v5), 24 hours (Cellcast), no limit (MobileMessage, which enforces only a 60-second minimum), and none (5CentSMS v4, template gateways). Jethro applies the same limits to the compose dialog's schedule field and validates them server-side; see Scheduling.
5CentSMS
-
Generate API keys at 5centsms.com.au/dashboard/api
-
Set these constants in
conf.php:// API key ID from https://www.5centsms.com.au/dashboard/api (required)define('SMS_5CENTSMS_APIKEY_ID', '<insert here>');// API key secret from https://www.5centsms.com.au/dashboard/api (required)define('SMS_5CENTSMS_APIKEY', '<insert here>');or via the System Configuration page:
FiveCent SMS v5 API key IDⓘ️ hideAPI key ID from your 5CentSMS dashboard (required). See <a href="https://www.5centsms.com.au/dashboard/api">5centsms.com.au/dashboard/api</a>.FiveCent SMS v5 API key secretⓘ️ hideAPI key secret from your 5CentSMS dashboard (required). See <a href="https://www.5centsms.com.au/dashboard/api">5centsms.com.au/dashboard/api</a>.
Jethro auto-detects the provider once both constants are set.

Upgrading 5CentSMS from v4 to v5
If you already have SMS_* settings from an older Jethro, SMS will appear configured showing provider '5CentSMS v4' rather than v5:

SMS sending will work, but you will be missing out on many features until you upgrade. Follow the steps above to create a new v5 API key and set the new SMS_5CENTSMS_* settings. Once set, Jethro will automatically switch to v5. The old SMS_HTTP_* settings can be removed once migrated.
Cellcast
- Generate a bearer token at app.cellcast.com/accounts/api-keys
- Set 'Sms Cellcast Apikey' in the settings page, or set in
conf.php:
// API bearer token from your Cellcast dashboard (required)
define('SMS_CELLCAST_APIKEY', '<insert here>');
or via the System Configuration page:
The SMS Gateway section should update:

Once configured, a new Persons → Messages page will appear showing SMS Send History.
MobileMessage
- Generate API credentials in your MobileMessage dashboard under Settings → API
- Set 'Sms Mobilemessage Username' and 'Sms Mobilemessage Password' in the settings page, or set in
conf.php:
// API username from your MobileMessage dashboard, Settings → API (required)
define('SMS_MOBILEMESSAGE_APIKEY_USERNAME', '<insert here>');
// API password from your MobileMessage dashboard, Settings → API (required)
define('SMS_MOBILEMESSAGE_APIKEY_PASSWORD', '<insert here>');
or via the System Configuration page.
Jethro auto-detects the provider once both constants are set. Note the send cool-off with MobileMessage is 90 seconds rather than 30, since the API only accepts schedules more than 60 seconds ahead.
SMS settings
Beyond just configuring a SMS provider, Admin → System Configuration → SMS Gateway has various settings affecting Jethro's SMS capabilities.
SMS Sender
When Jethro sends a SMS, it will appear to come 'from' either the mobile number of the Jethro user, or (if configured) 'Sender ID', a short identifier for your church (e.g. StBarnabas) that you register. Sender IDs are ideal for bulk messages where you don't expect (and cannot have) a reply. Sending from a personal number is good for pastoral situations where you expect a personal reply, but still want the send recorded.
The SMS_SENDER* defaults to preferring a Sender ID, if present, but also allowing sending from the user's mobile. Some examples:
_USER_MOBILE_,_SENDER_IDS_.Preview

Message body
(affected features: SMS Message field)
The maximum SMS length can be increased (at a cost), and emojis permitted or forbidden. Click the setting ⓘ️ help icons for details. For how this looks to users, see Message text.
160.when_free.Cost and URL shortening
0.1.0.1.// For hosting providers running many Jethro sites: the provider key jethro.au issued them, set in the shared conf.php. Each site then gets its own JETHROAU_API_KEY automatically, and a sysadmin turns a service on by agreeing to its terms in System Configuration, without signing in on jethro.au.
// Agreements, rate limits and short-URL attribution stay per site; jethro.au records the agreeing sysadmin's name and email, vouched for by the provider. Never put a site's own JETHROAU_API_KEY in a shared conf.php: every site would share its agreements. Blank = each site registers itself.
define('JETHROAU_PROVIDER_KEY', ''); // Hosting provider's jethro.au key, from which each site gets its own key
// With JETHROAU_PROVIDER_KEY: this site's id at the provider. jethro.au keeps one key per provider and tenant id, so it must be unique and never change. Default: the host name in BASE_URL, else the database name.
define('JETHROAU_TENANT', ''); // This site's stable id at its hosting provider
// Most SMS shortener (AI) calls one login session may make for Shorter alternative suggestions. Unset or 0 (the default) = unlimited.
// Each call counts, including shorter / longer requests and calls that fail; a suggestion Jethro already has for the same text is reused without a call. Once the limit is reached, no more suggestions appear until the user logs in again. Has no effect unless SMS shortening is enabled (see JETHROAU_API_KEY).
define('SMS_SHORTEN_MESSAGE_SESSION_MAX', ''); // Most SMS shortener (AI) calls per login session; unset or 0 = unlimited.
Post-send behaviour
(affected features: SMS Create Note, send cool-off )
0.SMS follow-up.30.Low Balance
0..// Let sends take the SMS balance below zero, where the SMS provider offers an overdraft.
// Only applies to an SMS provider whose balance may go negative (one declaring SmsCapability::OVERDRAFT, such as a credit ledger kept by your hosting provider); with any other provider, a send that needs more segments than the balance is always blocked. Off (the default), the compose screen blocks Send and the server refuses such a send. On, the compose screen only warns and the send goes ahead. Set in conf.php only, so on shared hosting the operator decides it per church.
define('SMS_OVERDRAFT_ALLOWED', 'false'); // Let sends take the SMS balance below zero, where the SMS provider offers an overdraft.
Debugging & cost display
0.0.Provider selection
The SMS provider can be explicitly configured here. The 'auto-detect' default causes Jethro to use the first SMS provider properly configured. You could even specify your own implementation class (in conf.php):
.5CentSMS v5
Discussed above — fill in these details to use https://5centsms.com.au.
https://www.5centsms.com.au/api/v5.Cellcast
Discussed above — fill in these details to use https://cellcast.com.au.
https://api.cellcast.com.// Bearer token from your Cellcast dashboard (required).
define('SMS_CELLCAST_APIKEY', ''); // Cellcast API bearer token
MobileMessage
Discussed above — fill in these details to use https://mobilemessage.com.au.
// API username from your MobileMessage dashboard, Settings → API (required if using the MobileMessage provider).
define('SMS_MOBILEMESSAGE_APIKEY_USERNAME', ''); // MobileMessage API username
// API password from your MobileMessage dashboard, Settings → API (required if using the MobileMessage provider).
define('SMS_MOBILEMESSAGE_APIKEY_PASSWORD', ''); // MobileMessage API password
// API base URL (optional; defaults to https://api.mobilemessage.com.au).
define('SMS_MOBILEMESSAGE_URL', 'https://api.mobilemessage.com.au');
Registering Sender IDs
A Sender ID is an alphanumeric name that appears as the message sender (e.g. "StBarnabas"). You may wish to register a Sender ID for your church, and use it for bulk SMSes where a reply is not expected.

Jethro's SMS form lets one pick the SMS 'sender', and defaults to registered Sender IDs plus the current user's mobile (see SMS Senders):
In Australia, a Sender ID requires registration. A Sender ID must be 3-11 characters, and must relate to your business name. 5CentSMS v5 and Cellcast support sender ID registration through Jethro. For MobileMessage, register the Sender ID in its dashboard (it submits the ACMA registration there); once approved it appears in Jethro's sender list automatically.
Go to Admin → System Configuration, and click 'SMS Gateway' go to the SMS configuration.
The first section will show your current SMS provider, and you will see a Register Sender ID link if your provider supports it:

5CentSMS sender ID registration
Click Register Sender ID to open the registration form:

Submitting the form:
-
creates an unverified sender ID with 5CentSMS via their API
-
prints a filled-in form that an authorised representative must copy-and paste into an email, and send to
hello@5centsms.com.au.
Cellcast sender ID registration
Cellcast allow the full registration form to be submitted via Jethro:

On clicking Submit, a new section confirming what was submitted will show:

MobileMessage sender ID registration
For MobileMessage, you will need to log in to their website, click Settings -> Sender IDs and fill in the form:

Permissions
There are two SMS-related permissions:
| Permission | What it allows |
|---|---|
| SMS/Mailchimp - send | Send SMS messages, and view SMSes sent by yourself |
| SMS - view all | View all users' SMS message history |

On new installations, these permissions are granted by default to new staff members, unless altered in Admin → System Configuration → Default Permissions.
Upgrading from an earlier Jethro version
Before this version, sent SMSes were only recorded as notes, so only staff with Notes - view all could read other users' messages. To avoid exposing those messages more widely, the upgrade grants SMS - view all only to staff who hold both SMS/Mailchimp - send and Notes - view all. It is removed from everyone else, apart from SysAdmins.
The same rule applies to the Default Permissions setting: it includes SMS - view all after the upgrade only if it already included both of those permissions.
After upgrading, you can grant SMS - view all to other users individually, or add it to Default Permissions.
SMS send log file
Earlier versions could log every send to a JSON-lines file set by SMS_SEND_LOGFILE (typically sms.log). The upgrade removes that setting, and Jethro no longer writes to the file. The file itself is left in place but is not imported: Persons → Messages initially only contains sends migrated from 'SMS Sent' notes, plus everything sent after the upgrade.
Recovering history from your SMS provider
Sends that were never recorded as notes — for example roster reminders sent by cron — can be recovered from your SMS provider. In Admin → System Configuration → SMS Gateway, use the Synchronize History action (or php scripts/sms.php sync-history --since=<unix timestamp> on the server). It fetches recent deliveries from the provider and adds any that are missing from Persons → Messages, matching recipients to people by mobile number. Running it again is safe: deliveries already present are skipped.
Limitations:
- Only 5CentSMS v5, Cellcast and MobileMessage support it. With 5CentSMS v4 it imports nothing.
- Without a From date it only fetches the last 24 hours. Set From to an early date (e.g. 2016-01-01) to import everything the provider still holds.
- The provider does not say which Jethro user sent each message, so imported sends show the sender as
system. - The provider's retention limits apply. 5CentSMS keeps roughly the last 12 months.
Keep or archive sms.log if you need history older than your provider retains.
Exporting in the old log format
For tooling that consumes the old log format, scripts/sms.php export-smslog writes Jethro's database send history as JSON lines in that format:
HTTP_HOST=yourdomain.example.org php ./scripts/sms.php export-smslog > sms-export.log
This is a regeneration from the database, not a copy of the old file, and differs from it:
- only sends present in the database are included (see above)
- timestamps are always UTC
- the recipient count is a string, and the fourth field is always
null - sends without a staff sender show
systemrather thannull - message bodies are truncated to 30 characters, as in the old log
Low SMS Reminders
Jethro can email someone when the SMS account balance runs low. It needs two things:
- The Sms Balance Low Threshold and Sms Balance Low Notificant Email settings in Admin → System Configuration → Balance.
- A cron job or systemd timer that runs
scripts/sms_low_reminder.phponce daily.
Cron example
0 9 * * * php /path/to/jethro/scripts/sms_low_reminder.php --sender=admin@mychurch.org
systemd timer example
Create two files:
/etc/systemd/system/jethro-sms-low-reminder.service
[Unit]
Description=Jethro SMS low balance reminder
[Service]
Type=oneshot
User=www-data
ExecStart=/usr/bin/php /path/to/jethro/scripts/sms_low_reminder.php --sender=admin@mychurch.org
/etc/systemd/system/jethro-sms-low-reminder.timer
[Unit]
Description=Jethro SMS low balance reminder timer
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
Then enable it:
systemctl daemon-reload
systemctl enable --now jethro-sms-low-reminder.timer
How it works
The script:
- Fetches the current account balance from the SMS provider
- Skips if the balance is above the threshold
- Skips if no SMS has been sent in the last 24 hours (avoids pestering during quiet periods)
- Emails the notificant with the current balance and a reminder to top up
Use --debug to preview the email without sending:
php ./scripts/sms_low_reminder.php --sender=admin@mychurch.org --debug
Notifications are sent by email only — sending an SMS warning would consume further credits from the depleted account.
2FA SMS
Jethro can require staff members to enter a 6-digit code sent by SMS before they finish logging in. Even if someone's password is stolen, their account stays safe because the attacker won't receive the code.
How it works
- A staff member enters their username and password on the login page
- Jethro checks whether their account requires 2FA
- If it does, Jethro generates a 6-digit code, sends it by SMS to the staff member's mobile number, and shows a form asking for the code
- The staff member enters the code (or it expires after 10 minutes)
- If the code matches, they're logged in. If it's wrong twice, the process resets and they start again
Turning on 2FA
2FA is controlled by the 2FA Required Permissions setting in Admin → System Configuration. This setting lists which permission levels must use 2FA — anyone who holds at least one of the listed permissions will be required to complete 2FA on every login.
For example, to require 2FA for users who can manage other people's accounts (SysAdmins), add the SysAdmin permission level to the list. The permission values are the numbers shown in the Permissions & Security section of System Configuration.
Start by requiring 2FA only for SysAdmins. You can add more permission levels later once you've confirmed everything works.
If a staff member doesn't have a mobile number on their record, 2FA can't proceed — Jethro will show an error and notify SysAdmins by email to update the person's contact details.
Choosing the sender
Regular SMS messages usually appear to come from the staff member's own mobile number. But a 2FA code is sent before the user finishes logging in — there's no "current user" yet — so Jethro needs a fixed sender name for 2FA codes.
2FA Sender Id in Admin → System Configuration → 2FA names the sender your provider recognises, usually the same Sender ID you use for bulk SMS (e.g. your church name). It is blank by default, and Jethro then resolves the sender in this order:
- 2FA Sender Id, when set;
- otherwise a literal SMS Sender (
SMS_SENDER) — unless that is_USER_MOBILE_, which needs a logged-in user and so can never work before login; - otherwise the first Sender ID your provider reports as ACMA-registered.
From 1 July 2026 an unregistered alphanumeric Sender ID is shown to recipients as "Unverified", which is why the 2FA sender is no longer defaulted to a made-up name: set 2FA Sender Id to a Sender ID you have actually registered.
The sender must be allowed by your SMS Sender Options list. If you've restricted senders to an allow-list (for example, only StBarnabas and user mobile numbers), make sure the 2FA sender appears in that list too.
2FA codes go through the same SMS gateway and credentials as ordinary messages. (Earlier versions could use a separate gateway via 2FA_SMS_* constants in conf.php; that has been removed.)
When 2FA cannot send a code
2FA is never skipped silently for an account that requires it. If no usable gateway exists — none configured, no 2FA sender as above (not even an ACMA-registered Sender ID from your provider), or leftover 2FA_SMS_* constants in conf.php — the login is refused with an error explaining the exact cause, and SysAdmins are emailed. Setting 2FA Sender Id to a registered Sender ID, fixing the SMS settings, or turning 2FA off with 2FA Enabled (or define('2FA_ENABLED', false) in conf.php) resolves it.
Trust this device
After entering a correct code, users see a checkbox: Trust this device for N days. If they tick it, Jethro won't ask for a 2FA code again from that browser until the days run out.
You can change how many days trust lasts (default 30), or disable the feature entirely, via the 2FA Trust Days setting.
Restricted accounts
By default, 2FA applies to everyone who holds a required permission — even users whose view is limited to particular congregations or groups ("restricted accounts"). If you'd prefer to exempt restricted users from 2FA, turn off 2FA Even For Restricted Accounts.
Testing and disabling
If you're setting up 2FA on a staging or test site, you can prevent real SMS charges while still testing the 2FA form and code flow:
- Turn on Sms 2fa Block Messages — the 2FA form appears, and Jethro logs what code it would have sent, but no SMS is actually delivered.
To switch 2FA off entirely (for example on a development copy of Jethro), turn off the 2FA Enabled setting.
Audit log
Jethro can keep a 2FA audit trail — who required a code, which number it was sent to, whether they entered it correctly, and any errors that occurred. To enable this, set the Sms 2fa Logfile path in System Configuration. Use Sms 2fa Log Level to control how much detail is recorded: Full logs every event, Quiet only records errors.
Troubleshooting 2FA
| Symptom | Likely cause |
|---|---|
| 2FA form never appears after login | 2FA Required Permissions is blank, or the user doesn't hold any of the listed permissions |
| "System error during 2-factor auth" | SMS gateway is unreachable, or the 2FA sender name isn't allowed by SMS Sender Options |
| 2FA is skipped without any message | SMS gateway isn't fully configured — check the gateway status on the SMS page |
| User gets an error about missing contact details | The staff member has no mobile number on their person record — add one in Persons & Families |
| "Cannot send 2FA: …" in the log | No 2FA sender could be resolved — set 2FA Sender Id (or SMS_SENDER) to a Sender ID registered with your provider, or register one and let Jethro pick it up |
See Also
- User Guide: Sending SMS — how staff send messages