mantisbt邮件配置

PHP.INI里面

[mail function]
; For Win32 only.
#SMTP = 192.168.0.249
SMTP = smtp.163.com
smtp_port = 25

; For Win32 only.
sendmail_from = [email protected]

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  = '[email protected]';
$g_webmaster_email      = '[email protected]';
$g_from_name   = 'Mantis Bug Tracker';
$g_from_email           = '[email protected]'; # the "From: " field in emails
$g_return_path_email    = '[email protected]'; # the return address for bounced mail

你可能感兴趣的:(ant)