PHP.INI里面
[mail function]
; For Win32 only.
#SMTP = 192.168.0.249
SMTP = smtp.163.com
smtp_port = 25
; For Win32 only.
sendmail_from = juefeiyechen@163.com
mantisbt config_ini.php(拷贝的config_inc.php.sample改的)
# --- Database Configuration ---
$g_hostname = 'localhost';
$g_db_username = 'root';
$g_db_password = '123456';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';
# --- Anonymous Access / Signup ---
$g_allow_signup = ON;
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';
# --- Email Configuration ---
$g_phpMailer_method = 2; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'smtp.163.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = 'juefeiyechen'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = 'XXXX密码'; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = 'juefeiyechen@163.com';
$g_webmaster_email = 'juefeiyechen@163.com';
$g_from_name = 'Mantis Bug Tracker';
$g_from_email = 'juefeiyechen@163.com'; # the "From: " field in emails
$g_return_path_email = 'juefeiyechen@163.com'; # the return address for bounced mail