今天又重新装Mantis了,不过这回使用了新的邮件地址作为mail host,最后采用了Gmail
使用常规配置,结果发现在页面看不出来错误,但是无法收到邮件。经过检查之后,发现邮件根本就没有发出去,存在问题。查了mantisbt bug 库,终于发现了这个问题,原来Gmail使用SSL,所以邮件配置也需要做一些适当的调整。
$g_phpMailer_method = 2;
$g_smtp_host = 'ssl://smtp.gmail.com:465';
$g_smtp_username = 'youmail@gmail.com';
$g_smtp_password = 'youpassword';
按照以上的配置做好之后,还需要修改你的php.ini文件,将php_openssl的extension前面的分号去掉,然后还需要下载最新的class.phpmailer.php文件覆盖原来的文件.
Download link hereunder:
http://www.mantisbt.org/bugs/view.php?id=8369
After finished those steps, you should restart the apache service .
Congratulation, You can use the email function via Gmail.
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=6707821
|
- 评论人:songyx0
2008-06-13 10:39:38
|
|||
多谢分享 |
||||