=== Synterial SMS Notifications for Amelia ===
Contributors: synterial
Tags: amelia, twilio, sms, booking, notifications
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send booking SMS notifications through your own Twilio account.

== Description ==

Synterial SMS Notifications for Amelia routes booking SMS notification payloads to Twilio using your Twilio Account SID and Auth Token.

The current integration listens for Amelia SMS notification data using Amelia's `amelia_manipulate_sms_data` filter. The plugin does not modify Amelia files and uses the WordPress HTTP API.

Features:

* Route booking SMS notifications to Twilio.
* Use a Twilio phone number or Messaging Service SID.
* Send a test SMS from the settings screen.
* Keep booking SMS history/log records in sync after Twilio accepts the message.
* No external PHP dependencies.

== Installation ==

1. Upload the `synterial-sms-notifications-amelia` folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins screen.
3. Go to Settings > Synterial SMS.
4. Add your Twilio Account SID, Auth Token, and sender settings.
5. Enable Twilio sending.

== External services ==

This plugin connects to the Twilio Programmable Messaging API to send SMS messages through the Twilio account configured by the site administrator.

Data is sent to Twilio when an administrator sends a test SMS from the plugin settings screen, or when the plugin is enabled and a supported booking SMS notification is routed through Twilio.

The data sent to Twilio can include the recipient phone number, SMS message body, configured sender phone number or Messaging Service SID, the Twilio Account SID in the API endpoint, and the Twilio Account SID/Auth Token in the HTTP Authorization header.

This service is provided by Twilio Inc.

Twilio Terms of Service: https://www.twilio.com/en-us/legal/tos

Twilio Privacy Notice: https://www.twilio.com/en-us/legal/privacy

== Frequently Asked Questions ==

= Does this require Amelia? =

The current version listens for Amelia SMS notification data. It can stay active without Amelia, but it will only route booking SMS messages when Amelia is active and emits SMS notifications.

= Does this use my Twilio balance? =

Yes. Messages are sent through the Twilio account configured on the settings screen.

= Where is the Twilio Auth Token stored? =

The token is stored in the WordPress options table. Restrict administrator access to trusted users.

== Screenshots ==

1. Status tab with readiness checks and the Twilio sending toggle.
2. Settings tab with Twilio credentials, sender mode, fallback behavior, saved secret controls, and test SMS form.
3. Diagnostics tab with WordPress, Amelia, SMS hook, and latest Twilio result details.

== Changelog ==

= 0.1.0 =
* Initial development version.
