- 請使用 Git Clone 此專案
- 把此專案放到 MantisBT 的 Plugins 中
- 設定排程 (Linux 為 CronTab, Windows 請使用工作排程器)
- 提供以下三個參數可供設定
- recipients:收件人,使用 ";" 分隔 (Required)
- ccs:副本,使用 ";" 分隔(Optional)
- projects:要寄送的專案名稱,使用 "," 分隔(Optional)
Linux 系統請參考以下設定
crontab -e
# 複製以下指令
55 17 * * * cd /var/www/html/plugins/DailyMailReport && /usr/bin/php ./Main.php --project "專案一,專案二" --recipients "[email protected]" --ccs "[email protected]"Windows 請使用工作排程器在動作新增以下指令
# MantisRoot 請替換為安裝 Mantis 的路徑
php {MantisRoot}/Plugins/DailyMailReport/Main.php
# 並設定開始位置
{MantisRoot}/Plugins/DailyMailReport/
# 設定引數
--project "專案一,專案二" --recipients "[email protected]" --ccs "[email protected]"請使用 PHP 8.0 以上進行開發,避免發生不支援的錯誤