====== Mantis 技巧整理 ======
===== 出現 due_date (管制日期) 的設定 =====
Mantis 1.2.x 其實已經有 due_date 這個欄位, 所以只要在 config_inc.php 內增加以下兩行就可以出現
:
# --- due date --------------------
$g_due_date_update_threshold = REPORTER;
$g_due_date_view_threshold = VIEWER;
$g_path = 'http://xxx.xxx.com/mantis/';
:
$g_path 要設定成 Mantis 實際的網址 \\
這樣信件內容所列出來的項目連結才會正確
再來就可以配合 Reminder Plugin 看看如何通知提醒即將到期的問題
* 參考網址 - http://www.mantisbt.org/bugs/view.php?id=10236
===== 設定寄信主機與信箱 =====
只要在 config_inc.php 內增加以下就可以指定使用 SMTP 透過 Mail Server 寄信
:
# --- email variables -------------
$g_phpMailer_method = 2; # SMTP
$g_smtp_host = '192.168.0.223';
$g_smtp_port = 25;
$g_smtp_username = 'mantis';
$g_smtp_password = 'mantis_password';
$g_administrator_email = 'mantis@mail.com';
$g_webmaster_email = 'mantis@mail.com';
# the "From: " field in emails
$g_from_email = 'mantis@mail.com';
# the return address for bounced mail
$g_return_path_email = 'mantis@mail.com';
:
{{tag>mantis tips}}