首页 | 博客群 | 公社 | 专栏 | 论坛 | 图片 | 资讯 | 注册 | 帮助 | 博客联播 | 随机访问
4月计划进行时- -| 回首页 | 2008年索引 | - -新环境的适应的适应

Mantis 使用Gmail 作为Mail server的配置

关键词Mantis    Gmail                                          

今天又重新装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.

【作者: 西西】【访问统计:】【2008年05月10日 星期六 18:10】【注册】【打印

搜索

Google

Trackback

你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=6707821

回复

- 评论人:songyx0   2008-06-13 10:39:38   

多谢分享

验证码:   
评论内容: