Skip to main content

SMS Administration

See also

To send SMS messages from Jethro, you need to:

  1. Sign up to, enable and configure a SMS provider
  2. Configure who SMSes appear to come from in the 'sender' settings
  3. Grant users the SMS - send permission

Configuring a SMS Provider​

In Admin → System Configuration:

  1. ensure the SMS feature is enabled under Enabled Features

Admin - SMS feature

  1. 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:

SMS Gateway - unconfigured

You now need to obtain an API key from your preferred provider, and enter the API key into the relevant setting.

note

Jethro SMS settings may be set either on the server in conf.php, or Admin → System Configuration. So these are equivalent:

  • SMS_VERBOSE in conf.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:

SMS Provider Capability Matrix​

Capability5Cent v5CellcastMobileMessage5Cent 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​

  1. Generate API keys at 5centsms.com.au/dashboard/api

  2. 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
    ⓘ️ hide
    API 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
    ⓘ️ hide
    API 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.

Screenshot

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:

Screenshot

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​

  1. Generate a bearer token at app.cellcast.com/accounts/api-keys
  2. 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:

Screenshot

The SMS Gateway section should update:

Screenshot

Once configured, a new Persons → Messages page will appear showing SMS Send History.

MobileMessage​

  1. Generate API credentials in your MobileMessage dashboard under Settings → API
  2. 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:

Hardcoded sender ID or mobile number that SMSes will appear to come from
ⓘ️ hide
Hardcoded sender ID or mobile number that SMSes will appear to come from. Use <code>_USER_MOBILE_</code> to use the current user's mobile number.
Sender options for the SMS dropdown. Tokens: _USER_MOBILE_ (user's mobile), _SENDER_IDS_ (upstream-registered IDs).
ⓘ️ hide
Comma-separated sender options for the dropdown. Tokens <code>_SENDER_IDS_</code> (every ID the provider reports) and <code>_USER_MOBILE_</code> are supported alongside literal IDs. Defaults to <code>_USER_MOBILE_,_SENDER_IDS_</code>. Example: <code>StBarnabas,_USER_MOBILE_,_SENDER_IDS_</code>. Set to an empty string to disable all Sender ID lookup.
Default: _USER_MOBILE_,_SENDER_IDS_.
Default sender selected in the SMS sender dropdown.
ⓘ️ hide
Default selection in the sender dropdown (Sender ID or <code>_USER_MOBILE_</code>). Blank = first option in SMS_SENDER_OPTIONS.
Preview
Screenshot
Defaults — if a sender ID is registered, both the Sender ID and the user’s mobile appear in the dropdown.

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.

ⓘ️ hide
Character limit for SMS messages sent from the web UI (scripts such as roster reminders are not limited). SMS is billed per 160 chars per person, so this is best set to 160 (1x), 306 (2x), 459 (3x), 612 (4x), 765 (5x) etc
SMSes are billed per 160 characters (or 70 if emojis / unicode are present), so setting SMS_MAX_LENGTH to 160 keeps costs down by enforcing brevity. To allow longer messages increase SMS_MAX_LENGTH to 306 (2x SMS segments), 459 (3x), 612 (4x), 765 (5x) etc.
Default: 160.
Whether to permit emojis and other unicode in SMSes
ⓘ️ hide
Whether to permit emojis and other unicode in SMSes.
Be aware that even a single Unicode character doubles the cost for messages >70 chars (shifts encoding from GSM 03.38 to UCS-2).<br><br><code>1</code> = allow all Unicode; <code>0</code> = GSM-only (non-GSM chars block sending); <code>'when_free'</code> = allow Unicode for single-segment messages (≤70 chars), block for longer. This only affects whether Jethro allows Unicode — your upstream provider has to as well. Cellcast supports Unicode natively; 5CentSMS requires contacting support.
Default: when_free.

Cost and URL shortening​

Your price per SMS segment in dollars, e.g. 0.029. Used for the compose cost estimate, and recorded with each new send when the provider does not report its own price (Cellcast does). Blank = provider default.
ⓘ️ hide
Your price per SMS segment in dollars, e.g. <code>0.029</code>. Providers such as Cellcast and 5CentSMS bill one credit per segment and charge less per credit the more you buy, so set this to what your bundle actually costs.
Used for the cost estimate in the SMS compose dialog, and recorded against each new send (as <code>smsdelivery.per_segment_cost</code>) when the provider doesn't report its own price — Cellcast does, 5CentSMS doesn't. Changing it, or switching providers, does not reprice messages already sent. Blank = the provider's built-in default.
Whether the 'Shorten URLs' checkbox is checked by default when sending an SMS
ⓘ️ hide
Whether the 'Shorten URLs' checkbox is checked by default when sending an SMS (to individuals or in bulk)
Default: 0.
API key for jethro.au services (URL shortening, SMS shortening), obtained by enabling a service in the panel above
ⓘ️ hide
API key for the online services jethro.au provides to Jethro sites: <em>URL shortening</em> (long URLs in SMS messages) and <em>SMS shortening</em> (a <em>Shorter alternative</em> wording for an SMS to several people that runs just over a segment boundary). Obtained by <em>Turn on</em> in the <em>jethro.au Services</em> section of System Configuration.
One key covers every service, but each service is turned on separately: <em>Turn on</em> takes you to jethro.au, where you sign in (Google, GitHub or an emailed link) and agree to that service's privacy terms on behalf of your organisation. jethro.au records who agreed and when, and refuses services whose terms the key hasn't agreed to. See the privacy policies of the <a href="https://jethro.au/url-shortener/privacy">URL shortener</a> and the <a href="https://jethro.au/sms-shortener/privacy">SMS shortener</a> (which sends message text to Cloudflare Workers AI). <em>Turn off</em> withdraws a service's agreement; <em>Deregister</em> revokes the key. On a site run by a hosting provider (<code>JETHROAU_PROVIDER_KEY</code>), the key is obtained automatically and agreements are made within Jethro. Blank = no jethro.au services.
Largest share of a message (0.0 to 1.0) that may need cutting for a shorter wording to be suggested. 1.0 = always suggest one; e.g. 0.3 skips messages far over a segment boundary.
ⓘ️ hide
How far over a segment boundary a message may be and still get a <em>Shorter alternative</em> suggestion: the largest share of its text (0.0 to 1.0) that would need cutting to save a segment. 1.0 (the default) suggests one for every multi-segment SMS to several people.
Lower values skip messages that could only be shortened by losing meaning. For example, at <code>0.3</code> a 228-character message (cut 30% to reach 160) gets a suggestion but a 300-character one (cut 47%) does not; a 310-character message (cut 1% to reach 306) always does. <code>0.0</code> only suggests dropping emoji and similar characters that make a message cost more. Also limits the SMS shortener itself (sent as <code>max_cut</code>), which then makes no AI call. Has no effect unless SMS shortening is enabled (see <code>JETHROAU_API_KEY</code>).
Default: 1.0.
Smallest saving, in dollars across all recipients, for which a shorter wording is suggested. Needs a known segment cost.
ⓘ️ hide
Smallest saving, in dollars across all recipients, for which a <em>Shorter alternative</em> is suggested. Default <code>1</code>; <code>0</code> suggests one whenever a segment can be saved.
The saving is segments saved × recipients × the segment cost the cost estimate uses (<code>SMS_SEGMENT_COST</code> or the provider's price), e.g. saving 1 segment for 50 people at $0.02 is $1.00. Jethro checks the most any rewording could save before asking the AI, so small sends cost no AI call, and checks the actual saving before showing a suggestion. If no segment cost is known, savings can't be priced and this has no effect. Blank or non-numeric = 1.
Default: 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 )

Whether to save each sent SMS as a person note by default
ⓘ️ hide
Pre-tick the 'Save as Note' checkbox.
Default: 0.
ⓘ️ hide
Default subject for SMS-saved notes.
Default: SMS follow-up.
Delay before sending to allow cancellation
ⓘ️ hide
Delay in seconds applied to user-initiated immediate (non-deferred) sends. When unset, a 30-second cool-off is applied automatically — giving the user a window to cancel a mistaken send. Set to <code>0</code> to disable. Only takes effect with providers that support both scheduled send and cancellation (5CentSMS v5, Cellcast, MobileMessage); with other providers (5CentSMS v4, HTTP-template gateways), and for automatic messages (2FA codes, reminders), messages are sent immediately. MobileMessage only accepts schedules more than 60 seconds ahead, so its minimum effective cool-off is 90 seconds.
Default: 30.

Low Balance​

Notify a staff member when SMS account balance drops below this amount (0 = disabled)
ⓘ️ hide
Trigger a low-balance alert below this credit count. <code>0</code> disables.
Default: 0.
Email address of the person to notify when SMS balance is low
ⓘ️ hide
Email address to notify when the SMS balance is low.
Default: .
// 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​

Log HTTP requests to upstream SMS provider
ⓘ️ hide
Log HTTP requests/responses to the PHP error log.
Default: 0.
In Test Mode no SMSes are actually sent
ⓘ️ hide
Dry-run — no messages actually sent.
Default: 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):

Which SMS provider to use for sending
ⓘ️ hide
Which SMS provider to use for sending. Short key or fully-qualified class name. Short keys: <code>5centsmsv5</code>, <code>cellcast</code>, <code>mobilemessage</code>. When unset, Jethro auto-detects from whichever required provider constants are defined.
Default: .

5CentSMS v5​

Discussed above — fill in these details to use https://5centsms.com.au.

FiveCent SMS v5 API key ID
ⓘ️ hide
API 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
ⓘ️ hide
API key secret from your 5CentSMS dashboard (required). See <a href="https://www.5centsms.com.au/dashboard/api">5centsms.com.au/dashboard/api</a>.
ⓘ️ hide
API base URL (optional; defaults to <code>https://www.5centsms.com.au/api/v5</code>).
Default: https://www.5centsms.com.au/api/v5.

Cellcast​

Discussed above — fill in these details to use https://cellcast.com.au.

ⓘ️ hide
API base URL (optional; defaults to <code>https://api.cellcast.com</code>).
Default: 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.

Screenshot

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:

Screenshot

5CentSMS sender ID registration​

Click Register Sender ID to open the registration form:

Screenshot

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.

    Screenshot

Cellcast sender ID registration​

Cellcast allow the full registration form to be submitted via Jethro:

Screenshot

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

Screenshot

MobileMessage sender ID registration​

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

Screenshot

Permissions​

There are two SMS-related permissions:

PermissionWhat it allows
SMS/Mailchimp - sendSend SMS messages, and view SMSes sent by yourself
SMS - view allView all users' SMS message history

Screenshot

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 system rather than null
  • 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:

  1. The Sms Balance Low Threshold and Sms Balance Low Notificant Email settings in Admin → System Configuration → Balance.
  2. A cron job or systemd timer that runs scripts/sms_low_reminder.php once 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.

note

2FA SMS needs a working SMS gateway. If your gateway isn't set up yet, follow the provider setup steps above first. The 'SMS' feature does not need to be enabled.

How it works​

  1. A staff member enters their username and password on the login page
  2. Jethro checks whether their account requires 2FA
  3. 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
  4. The staff member enters the code (or it expires after 10 minutes)
  5. 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.

tip

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:

  1. 2FA Sender Id, when set;
  2. 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;
  3. 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​

SymptomLikely cause
2FA form never appears after login2FA 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 messageSMS gateway isn't fully configured — check the gateway status on the SMS page
User gets an error about missing contact detailsThe staff member has no mobile number on their person record — add one in Persons & Families
"Cannot send 2FA: …" in the logNo 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​