mantis 邮件配置问题 不能发送邮件提醒

 

1下载PHPMailer_v5.1 php

 地址http://phpmailer.sourceforge.net
解压此安装包后到/var/phpmailer

2修改/var/www/html/mantis/config_defaults_inc.php文件:html

 

 /****************************************************mysql

           * MantisBT Email Settings *web

*****************************************************/sql

$g_use_phpMailer = ON;
$g_phpMailer_path = '/var/phpmailer';            spa

$g_administrator_email=  'alex_zll@163.com';  .net

$g_webmaster_email  =  'alex_zll@163.com';  htm

$g_from_email  = 'alex_zll@163.com';  ssl

$g_from_name  = 'Mantis Bug Tracker';io

$g_return_path_email=  'alex_zll@163.com';  

$g_enable_email_notification= ON;

$g_phpMailer_method= PHPMAILER_METHOD_SMTP;

$g_smtp_host  = 'ssl:smtp.163.com';             //以163邮箱为例,你能够改为你的。前面ssl很关键

$g_smtp_username = 'alex_zll@163.com';                     //163邮箱的密码

$g_smtp_password = 'alexzll';                         //163邮箱的用户名

 

3修改/var/www/html/mantis/config_inc.php文件:

$g_hostname = 'localhost'; $g_db_type = 'mysql'; $g_database_name = 'bugtracker'; $g_db_username = 'root'; $g_db_password = '123456';  //root密码根据本身修改 $g_smtp_host='smtp.163.com';  $g_smtp_username= 'alex_zll@163.com';   $g_smtp_password= 'alexzll';     $g_phpMailer_method =2;  $g_news_enabled = ON;