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文件中配置,不再详述。

posted @ 2016-03-02 10:09  鲁白  Views(2143)  Comments(0Edit  收藏  举报