Files
timebank-cc-public/scripts/test-inactive-warning-emails.sh
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

28 lines
897 B
Bash
Executable File

#!/bin/bash
# Quick script to test all 3 inactive profile warning emails
USER_ID=${1:-102}
echo "================================================"
echo " Testing Inactive profile warning Emails"
echo "================================================"
echo ""
echo "Sending all 3 warning emails to user #$USER_ID"
echo ""
echo "📧 Warning 1 (2 weeks remaining)..."
php artisan email:send-test --type=inactive-warning-1 --receiver=user --id=$USER_ID
echo ""
echo "📧 Warning 2 (1 week remaining)..."
php artisan email:send-test --type=inactive-warning-2 --receiver=user --id=$USER_ID
echo ""
echo "📧 Final Warning (24 hours remaining)..."
php artisan email:send-test --type=inactive-warning-final --receiver=user --id=$USER_ID
echo ""
echo "================================================"
echo " ✅ All warning emails sent!"
echo "================================================"