nonfish 2006-12-5 15:22
mantis1.0.6邮件配置问题,未解决,头痛中!
我装的版本是mantis1.0.6,整个安装过程很顺利,没什么问题,装完之后,他提示我删掉admin目录和更改administrator密码,没理会,等会再说,然后是邮件配置
以下是我的config_inc.php
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantis';
$g_db_username = 'root';
$g_db_password = 'password';
$g_default_language = 'chinese_simplified';
$g_window_title = 'BUG管理系统';
$g_page_title = '欢迎访问Mantis BUG 跟踪管理系统';
$g_show_queries_count = OFF;
$g_allow_file_upload = ON;
$g_smtp_host = 'smtp.163.com';
$g_smtp_username = 'user';
$g_smtp_password = 'password';
$g_enable_email_notification = ON;
$g_phpMailer_method = 2;
$g_administrator_email = [email=]'user@163.com'[/email];
$g_webmaster_email = [email=]'user@163.com[/email];
$g_from_email = [email=]'user@163.com'[/email];
$g_return_path_email = [email=]'user@163.com'[/email];
$g_validate_email = OFF;
?>
php.ini文件里改这几个地方
[mail function]
; For Win32 only.
SMTP = smtp.163.com
smtp_port = 25
; For Win32 only.
;sendmail_from = [email=user@163.com]user@163.com[/email] #这行默认的好像是注释掉了
还把include_path改成了include_path = "D:\www\mantis\core\",下载了phpmail,解压到D:\www\mantis\core\目录下
然后[url=http://localhost/mantis/admin/check.php]http://localhost/mantis/admin/check.php[/url],点sendmail,报错
--------------------------------------------------------------------------------------------------
[b][color=#ff0000]Testing Mail[/color][/b] - PROBLEMS SENDING MAIL TO: [email=user@163.com]user@163.com[/email] #后来把这改成了其他邮箱,也不行
Mailer Error: The following From address failed: user[email=user@163.com]@163.com[/email]
--------------------------------------------------------------------------------------------------
最后把 $g_phpMailer_method = 2;改成了1,再测试,sendmail,提示成功了,但实际上我并没有收到信,郁闷啊啊啊啊啊啊啊
已经困扰我好些天了,到底是哪里的问题? 谁知道?或者谁遇到过这种问题,告诉我啊啊啊啊啊啊啊啊啊啊!