差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
tech:mantistips [2010/10/10 21:13] – 建立 jonathantech:mantistips [2016/12/10 08:58] (目前版本) jonathan
行 1: 行 1:
 +====== Mantis 技巧整理 ======
 +===== 出現 due_date (管制日期) 的設定 =====
 +Mantis 1.2.x 其實已經有 due_date 這個欄位, 所以只要在 config_inc.php 內增加以下兩行就可以出現
 +<file>
 +:
 +        # --- due date --------------------
 +        $g_due_date_update_threshold = REPORTER;
 +        $g_due_date_view_threshold = VIEWER;
 +        $g_path = 'http://xxx.xxx.com/mantis/';
 +:
 +</file>
 +<note>
 +$g_path 要設定成 Mantis 實際的網址 \\ 
 +這樣信件內容所列出來的項目連結才會正確
 +</note>
 +再來就可以配合 Reminder Plugin 看看如何通知提醒即將到期的問題
  
 +  * 參考網址 -  http://www.mantisbt.org/bugs/view.php?id=10236
 +
 +===== 設定寄信主機與信箱 =====
 +
 +只要在 config_inc.php 內增加以下就可以指定使用 SMTP 透過 Mail Server 寄信
 +<file>
 +:
 +# --- 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  = '[email protected]';
 +        $g_webmaster_email      = '[email protected]';
 +        # the "From: " field in emails
 +        $g_from_email           = '[email protected]';
 +        # the return address for bounced mail
 +        $g_return_path_email    = '[email protected]';
 +:
 +</file>
 +
 +{{tag>mantis tips}}