开启mantis的邮件提醒功能

之前一直参照低版本的mantis修改邮件功能,改的是config_defaults_inc.php文件,怎么试验都不成,后来终于看到新版本的据说要改config_inc.php这个文件,而且查看了下没有网上提过的phpmailer目录,继续试验一下吧。

首先下载phpmailer,放在c:/phpmailer/位置,下载地址:https://github.com/Synchro/PHPMailer/tree/phpmailer-5.2.0

对于Mail的相关设置需要考虑几点:

推荐使用PHPMAILER_METHOD_SMTP方式进行发信。并且,可以根据具体需求更改配置,例如,针对Gmail的ssl认证和特殊端口,都可以从config_default_inc.php中看到。我这里就不再多说了。

这个开关不要忘记打开。

<?php
$g_enable_email_notification = ON ;
?>

针对Mantis 1.2.* 我的config_inc.php的参考配置。

<?php
 $g_hostname = 'localhost';
 $g_db_type = 'mysql';
 $g_database_name = 'mantis';
 $g_db_username = 'root';
 $g_db_password = '';

 $g_default_language = 'chinese_simplified' ;

 # --- Email Configuration ---
 $g_enable_email_notification = ON ;
 $g_phpMailer_method     = PHPMAILER_METHOD_SMTP; 
 $g_smtp_host            = 'mail.domain.net';    
 $g_smtp_username        = 'test@domain.net';    
 $g_smtp_password        = 'password';             
 $g_administrator_email  = 'test@domain.net';
 $g_webmaster_email      = 'test@domain.net';
 $g_from_name            = 'Mantis Bug Tracker';
 $g_from_email           = 'test@domain.net';    
 $g_return_path_email    = 'test@domain.net';    
 $g_email_receive_own    = OFF;
 $g_email_send_using_cronjob = OFF;

 $g_use_phpMailer = ON;
 $g_phpMailer_path = 'c:/phpmailer/';
测试一下忘记密码功能,能接受邮件了。吼吼。。。。


mantis不使用邮件系统(Email)的配置

 

修改配置文件./mantis/config_inc.php

 

$g_enable_email_notification = OFF;

 

保存、关闭

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值