- 管理员默认用密
administrator / root
- 添加用户时,不需要通过Email认证来设置密码
Update config_inc.php configuration file and include the following parameters:
$g_enable_email_notification = OFF;
$g_send_reset_password = OFF;
$g_validate_email = OFF;
$g_check_mx_record = OFF;
- SMTP设置
#编辑 config/config_inc.php,以腾讯企业邮为例:
$g_smtp_host='smtp.exmail.qq.com';
$g_smtp_username='xxx';
$g_smtp_password='xxx';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_phpMailer_method =2;
- 定时邮件
# 一般方式
*/1* * * * * /usr/bin/php /data0/Projects/Supports/mantisbt/scripts/send_emails.php > /dev/null 2>&1
# Docker 方式
*/1* * * * * /usr/bin/docker exec om-php php /var/www/html/Supports/mantisbt/scripts/send_emails.php > /dev/null 2>&1
- config.inc.php 例子
<?php
$g_enable_email_notification = ON;
//$g_send_reset_password = OFF;
//$g_validate_email = OFF;
$g_check_mx_record = OFF;
$g_hostname = 'mariadb';
$g_db_type = 'mysqli';
$g_database_name = 'db_mantis';
$g_db_username = 'xxx';
$g_db_password = 'xxx';
/**
* Mail settings
*/
$g_smtp_host='smtp.exmail.qq.com';
$g_smtp_username='xxx';
$g_smtp_password='xxx';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_phpMailer_method =2;
$g_email_send_using_cronjob = ON;
$g_webmaster_email = "admin@xxx.com";
$g_from_email = "admin@xxx.com";
/**
* Webmaster email address. This is shown publicly at the bottom of each page
* and thus may be susceptible to being detected by spam email harvesters.
* @global string $g_webmaster_email
*/
$g_webmaster_email = 'admin@xxx.com';
$g_from_name = 'OYM Task';
$g_email_is_html = ON;
$g_return_path_email = 'admin@xxx.com';
$g_default_timezone = 'Asia/Hong_Kong';
$g_default_language = 'chinese_simplified';
$g_form_security_validation = OFF;
$g_user_threshold = MANAGER;
$g_create_project_threshold = MANAGER;
$g_delete_project_threshold = MANAGER;
$g_show_user_realname_threshold = ON;
$g_show_realname = ON;
$g_crypto_master_salt = 'xxx';
$g_my_view_boxes = array(
'assigned' => '10',
'tested' => '20',
'waittingfordeploy' => '30',
'deployed' => '40',
'unassigned' => '50',
'reported' => '60',
'resolved' => '15',
'recent_mod' => '80',
'monitored' => '90',
'closed' => '25',
'feedback' => '0',
'verify' => '0',
'my_comments' => '0'
);
$g_max_file_size = 20000000; // 上传文件尺寸最大20M
// add time tracking
$g_time_tracking_enabled = ON;
$g_time_tracking_with_billing = ON;
$g_time_tracking_stopwatch = ON;
$g_path = 'https://xxx.com/';