Mantis邮件设置

打开mantis地下的config_inc.php.samp文件。一样的改名为config_inc.php。其实就是config_default_inc.php内容的缩短版,具体可以先看deafult里面的内容。
里面的原貌是:
# --- database variables ---------
# set these values to match your setup
$g_hostname = "localhost";
$g_db_username = "root";
$g_db_password = "";
$g_database_name = "bugtracker";
$g_db_type = "mysql";
# --- email variables -------------
$g_administrator_email = 'administrator@example.com';
$g_webmaster_email = 'webmaster@example.com';
# the "From: " field in emails
$g_from_email = 'noreply@example.com';
# the return address for bounced mail
$g_return_path_email = 'admin@example.com';
# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# The default value is ON but you must make sure file uploading is enabled
# in PHP as well. You may need to add "file_uploads = TRUE" to your php.ini.
$g_allow_file_upload = ON;
可以进行修改:
# --- database variables ---------
# set these values to match your setup
$g_hostname = 'localhost';
$g_db_username = 'mantis';
$g_db_password = 'mantis';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';
$g_default_language ='chinese_simplified';
$g_window_title = 'mantis BUG管理系统';
$g_page_title = '欢迎使用Mantis BUG ';
$g_show_queries_count = OFF;
# --- email variables -------------
$g_use_phpMailer = ON; #使用phpMailer
$g_phpMailer_path = 'C:/EasyPHP 2.0b1/php5/phpmailer'; //phpMailer路径(因为用的是xampp安装,所以默认不
需要在装个右键发送的,直接写邮箱的设置就可以)
$g_phpMailer_method = 2; #使用SMTP服务
$g_smtp_host = 'smtp.163.com'; #使用SMTP服务
$g_smtp_username = 'fanxin1029';
$g_smtp_password = 'XXXXXX';
$g_administrator_email = 'fanxin1029@163.com';
$g_webmaster_email = 'fanxin1029@163.com';
$g_from_email = 'fanxin1029@163.com';
$g_return_path_email = 'fanxin1029@163.com';
# --- file upload settings --------
$g_allow_file_upload = ON; //使用上传文件功能
$g_file_upload_method = DISK;
$g_max_file_size = 100000000; # 100 MB #设置文件空间
# --- jpgraph settings --------
$g_use_jpgraph = ON; 使用jpgraph
$g_jpgraph_path = 'C:/EasyPHP 2.0b1/php5/jpgraph-1.21b/src/'; 指定jpgraph的路径
$g_graph_font = 'chinese_gbk'; 设置jpgraph图形字体
# --- time settings --------
$g_short_date_format = 'Y-m-d';
$g_normal_date_format = 'Y-m-d H:i';
$g_complete_date_format = 'Y-m-d H:i';

http://www.blogjava.net/qileilove/archive/2011/10/27/362169.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值