一.讀取順序
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]';