Download the PHP package texxasrulez/scheduled_sending without Composer
On this page you can find all versions of the php package texxasrulez/scheduled_sending. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download texxasrulez/scheduled_sending
More information about texxasrulez/scheduled_sending
Files in texxasrulez/scheduled_sending
Package scheduled_sending
Short Description Roundcube plugin: Schedule to send emails at a later time.
License GPL-3.0
Homepage https://github.com/texxasrulez/scheduled_sending
Informations about the package scheduled_sending
Scheduled Sending
Schedule messages to be transmitted when you want them to go, including messages with attachments.
Scheduled Sending — Installation Guide for Roundcube
This plugin lets users schedule emails to be sent later. It includes a web UI, localization, and CLI helpers to trigger a queue worker that delivers messages when they’re due.
This guide covers both Composer-based and manual installation, database setup, configuration, and setting up the worker trigger (cron/systemd).
1) Requirements
- Roundcube (modern version; plugin uses standard
rcube_pluginAPI). - PHP compatible with your Roundcube (PHP 8.x recommended).
- Database access for creating the plugin table.
- Ability to run a periodic job (cron or systemd timer) to call the worker endpoint.
- Web access to your Roundcube URL for the worker (or curl from cron).
2) Install the plugin
Option A — Composer (preferred)
- Place the plugin in a VCS or local path that Composer can reference.
-
Ensure your Roundcube root has the Roundcube plugin installer in
require(most distros do): -
Add a repository that points to the plugin (adjust the path):
- Run:
Composer will install the plugin under
plugins/scheduled_sending(per itscomposer.json).
Option B — Manual install
-
Unzip the plugin into Roundcube’s plugins directory:
- Ensure permissions match your web server user:
3) Database schema
Create the queue table (MySQL/MariaDB):
- File:
plugins/scheduled_sending/SQL/mysql.initial.sql - SQL (for convenience):
If you use a database other than MySQL/MariaDB, adapt the SQL accordingly.
4) Configuration
Copy the example config and edit it:
Key options (from config.inc.php.dist):
Important: set a strong scheduled_sending_worker_token (32+ random characters).
Set scheduled_sending_logging to true to write normal plugin and worker entries to the scheduled_sending Roundcube log. Set scheduled_debug to true only when you need the more detailed diagnostic trace written to scheduled_sending_debug.
When scheduled_sending_delivery is smtp, scheduled rows store the scheduling user's SMTP username and encrypted SMTP password in meta_json when available. This lets the worker send later with the same Roundcube SMTP credentials in multi-user installations.
5) Enable the plugin in Roundcube
Edit your Roundcube main config (e.g. config/config.inc.php) and add the plugin name:
Clear Roundcube caches if needed (e.g., remove temp/* & cache/* contents, keeping the dirs).
6) Queue worker — how delivery is triggered
The plugin exposes an HTTP worker action that sends all messages scheduled at or before “now”. The worker requires the token from your config.inc.php.
Worker URL shape:
There are two convenient ways to call it periodically:
A) Via provided CLI helper (recommended)
bin/scheduled_queue_worker.phpmakes an HTTP request to the worker URL.bin/scheduled_send.phpis a shim that requires the worker script.
Examples:
Cron: run once per minute (or every 5 minutes if your use-case is lax):
B) Direct HTTP call (curl/wget)
Cron variant:
The worker is idempotent and gated by a lock (
scheduled_sending_lock_key/ timeout) to avoid overlap.
7) Verifying
- Log in to Roundcube, compose a message, pick a future time, and schedule.
- Confirm a row is added to the
scheduled_queuetable. - Ensure your cron/systemd job runs; the message should send at/after the scheduled time.
- Check logs:
- Web server access/error logs
logs/or a dedicated log (the plugin writes viarcube::write_log('scheduled_sending', ...)whenscheduled_sending_loggingis enabled)
- Confirm sent messages land in the configured Sent folder (if set).
8) Troubleshooting
- 401/403 on worker call: bad or missing
_token. Verifyscheduled_sending_worker_tokenmatches the value you pass. - Nothing gets sent: verify the cron is running and the URL points to your Roundcube base. Check that due items exist in
scheduled_queueandstatusisqueued. - Timezones: UI may use
scheduled_timezone; storage is UTC. Ensure your server clock is correct (NTP) and PHPdate.timezoneis set. - Mail transport:
scheduled_sending_deliveryuses Roundcube’s SMTP by default. If usingmailor a relay, ensure it’s configured correctly in Roundcube. - SMTP credentials: queued SMTP messages rely on the encrypted credential values captured in
meta_jsonat schedule time. If a user changes their SMTP password before the worker runs, reschedule the message. - Locks: if you see messages about an active lock, either reduce the cron frequency or increase
scheduled_sending_lock_timeout.
9) Uninstall
- Remove the plugin folder or uninstall via Composer.
- Optionally drop the table:
10) File map (high-level)
scheduled_sending.php— main plugin class (registers actions/UI)config.inc.php.dist— example configurationSQL/mysql.initial.sql— schema for the queue tablebin/scheduled_queue_worker.php— CLI helper (HTTP to worker)bin/scheduled_send.php— thin wrapper including the worker helpertemplates/— Roundcube templates for UIlocalization/— i18n stringsskins//js/— assets
That’s it. Once the table exists, the config is set (especially _token), and the cron/systemd job is running, scheduled emails will go out on time.
Enjoy!
:moneybag: Donations :moneybag:
If you use this plugin and would like to show your appreciation by buying me a cup of coffee, I surely would appreciate it. A regular cup of Joe is sufficient, but a Starbucks Coffee would be better ... \ Zelle (Zelle is integrated within many major banks Mobile Apps by default) - Just send to texxasrulez at yahoo dot com \ No Zelle in your banks mobile app, no problem, just click Paypal and I can make a Starbucks run ...
I appreciate the interest in this plugin and hope all the best ...
Versioning
scheduled_sendingnow keeps its canonical version inscheduled_sending::PLUGIN_VERSIONinsidescheduled_sending.php.scheduled_sending::info()exposes the plugin metadata array used for self-identification.- Development builds should use a
+devsuffix such as1.0.0+dev. - Release builds should use a clean tagged version such as
1.0.0.
For a release bump:
- Update
scheduled_sending::PLUGIN_VERSIONinscheduled_sending.phpor runsh scripts/bump-version.sh 1.0.0. - Update
CHANGELOG.md. - Create the matching release tag after verification.