一.读取顺序
config_defaults_inc.php
config_inc.php


二.config_defaults_inc.php 中邮件设置

$g_administrator_email = '[email protected]';
$g_webmaster_email = '[email protected]';
$g_from_email = '[email protected]';
$g_from_name = 'Mantis Bug Tracker';
$g_return_path_email = '[email protected]';

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.163.com';
$g_smtp_username = '[email protected]';
$g_smtp_password = 'test7033';

三.config_inc.php 中的邮件设置
因为我的config_inc.php 是拷贝的config_inc.php.sample 作为模板所以邮件按照以下配置进行。
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.163.com';
$g_smtp_username = '[email protected]';
$g_smtp_password = 'test7033';
$g_administrator_email = '[email protected]';
$g_webmaster_email = '[email protected]';
$g_from_email = '[email protected]';
$g_return_path_email = '[email protected]';