mantisbt配置郵件和我的視圖模塊


mantisbt是一個開源的bug跟蹤系統,使用php語言作為開發。

這是我用過的十分不錯的一個bug管理系統,具體怎么使用,用過類似系統的人,大體看一下就會使用,因此我不做記錄,接下來要寫修改兩個配置的方法:

一,我的視圖模塊配置

系統默認視圖如下,有六個版塊,1,分派給我的;2,未分派的;3,我報告的;4,已解決的;5,最近修改的;6,我監控的:

找到配置文件config_defaults_inc.php,修改變量$g_my_view_boxes以更改首頁模塊的位置,或者使用其他模塊,代碼如下:

/**
     * Boxes to be shown and their order
     * A box that is not to be shown can have its value set to 0
     * @global array $g_my_view_boxes
     */
    $g_my_view_boxes = array (
        'assigned'      => '1',
        'unassigned'    => '2',
        'reported'      => '3',
        'resolved'      => '4',
        'recent_mod'    => '5',
        'monitored'        => '6',
        'feedback'        => '0',
        'verify'        => '0',
        'my_comments'    => '0'
    );

二,郵件配置

同樣找到配置文件config_defaults_inc.php,修改變量$g_smtp_host,$g_smtp_username,$g_smtp_password:

/**
     * This option allows you to use a remote SMTP host.  Must use the phpMailer script
     * One or more hosts, separated by a semicolon, can be listed.
     * You can also specify a different port for each host by using this
     * format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
     * Hosts will be tried in order.
     * @global string $g_smtp_host
     */
    #$g_smtp_host            = 'localhost';
    $g_smtp_host            = 'smtp.163.com';

    /**
     * These options allow you to use SMTP Authentication when you use a remote
     * SMTP host with phpMailer.  If smtp_username is not '' then the username
     * and password will be used when logging in to the SMTP server.
     * @global string $g_smtp_username
     */
    $g_smtp_username = '*****@163.com';

    /**
     * SMTP Server Authentication password
     * @global string $g_smtp_password
     */
    $g_smtp_password = '*****';

    /**
     * This control the connection mode to SMTP server. Can be 'ssl' or 'tls'
     * @global string $g_smtp_connection_mode
     */
    $g_smtp_connection_mode = '';

    /**
     * The smtp port to use.  The typical SMTP ports are 25 and 587.  The port to use
     * will depend on the SMTP server configuration and hence others may be used.
     * @global int $g_smtp_port
     */
    $g_smtp_port = 25;

下面截圖說明163郵箱的配置:

1,$g_smtp_host賦值'smtp.163.com'。如下圖,登錄163郵箱;依次進入,設置=>POP3/SMTP/IMAP;開啟SMTP服務。

2,$g_smtp_username賦值'your email'。

3,$g_smtp_password賦值'your client password',此處的smtp不是郵箱的登錄密碼,而是客戶端授權密碼。如下圖,管理客戶端授權密碼;開啟,並且設置客戶端授權密碼。

郵箱設置完畢之后,每當有操作之后,系統會發送郵件給相關的人員。哪些操作可以觸發郵件發送,也可以在config_defaults_inc.php文件中配置,不再詳述。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM