PHP code example of texxasrulez / scheduled_sending
1. Go to this page and download the library: Download texxasrulez/scheduled_sending library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
texxasrulez / scheduled_sending example snippets
$config['scheduled_sending_table'] = 'scheduled_queue';
$config['scheduled_worker_batch'] = 20;
$config['scheduled_timezone'] = 'America/Chicago'; // optional; storage is UTC
$config['scheduled_sending_logging'] = false; // plugin log entries
$config['scheduled_debug'] = false;
$config['scheduled_force_plugin_assets'] = false;
$config['scheduled_show_fab'] = true;
$config['scheduled_sending_worker_token'] = '32_character_key';
$config['scheduled_sending_delivery'] = 'smtp'; // 'smtp', 'mail', or 'none' for dry-run
$config['scheduled_sending_batch'] = 25; // optional
$config['scheduled_sending_sent_folder'] = 'Sent'; // optional
$config['db_table_scheduled_sending'] = 'scheduled_queue';
$config['scheduled_sending_lock_key'] = 'scheduled_sending_worker';
$config['scheduled_sending_lock_timeout'] = 10; // seconds
// Add 'scheduled_sending' to the plugins array
$config['plugins'] = array_merge($config['plugins'] ?? [], ['scheduled_sending']);
bash
# Using CLI flags
php plugins/scheduled_sending/bin/scheduled_queue_worker.php --url="https://mail.example.com/roundcube/" --token="32_character_key"
# Or via environment variables
SS_WORKER_URL="https://mail.example.com/roundcube/" SS_WORKER_TOKEN="32_character_key" php plugins/scheduled_sending/bin/scheduled_queue_worker.php