Posts Tagged ‘mantis’

mantis无法发送邮件至gmail的解决办法

March 13th, 2009

1. gmail采用的是SSL,在config.inc.php里配置

$g_phpMailer_method = 2;
$g_smtp_host = ’ssl://smtp.gmail.com:465′;
$g_smtp_username = ‘address@mydomain.com’;
$g_smtp_password = ‘myPassword’;

2. 更新class.phpmailer.php, SmtpConnect() function fixed to deal with both the protocol and port being in the host string (it assumes only one colon in the host string)

3. 确认php开启openssl扩展,重新开启扩展的话记得重启web server

参考http://www.mantisbt.org/bugs/view.php?id=8369

  • Share/Save/Bookmark