Mantis的Email配置主要修改config_defaults_inc.php以下部分: $g_return_path_email =
‘admin@example.com’; $g_default_notify_flags = array(‘reporter’ => ON, ‘handler’ => ON, ‘monitor’ => ON, ‘bugnotes’ => ON, ‘explicit’ => ON, ‘threshold_min’ => NOBODY, ‘threshold_max’ => NOBODY); $g_notify_flags['new'] = array(‘bugnotes’ => OFF, ‘monitor’ => OFF); $g_notify_flags['monitor'] = array( ‘reporter’ => OFF, ‘handler’ => OFF, ‘monitor’ => OFF, ‘bugnotes’ => OFF, ‘explicit’ => ON, ‘threshold_min’ => NOBODY, ‘threshold_max’ => NOBODY); $g_email_receive_own = OFF; $g_validate_email = ON; $g_check_mx_record = OFF; $g_allow_blank_email = OFF;
$g_limit_email_domain = OFF; $g_show_user_email_threshold = NOBODY;
$g_show_user_realname_threshold = NOBODY; $g_mail_priority = 3;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; $g_smtp_host =
‘localhost’; 另外,若希望邮件发送的时候是直接以IP地址发送链接的,而不是以localhost发送的。那么还需要配置C:\xampp\apache\conf目录下在找到httpd.conf,打开后搜索到listen,把Listen 80修改为listen IP:80,IP就是你服务器的地址。还有修改php.ini,把SMTP = localhost修改为SMTP = IP,IP为你服务器IP。 |
|