在安装过程或者通过编辑protected/config/main.php文件可以启用邮件通知功能。例如,修改如下SMTP服务器信息。
'mail' =>
array (
'on' => '1',
'from_address' => 'xxxx@126.com', //发送邮件的邮箱地址。
'from_name' => 'BugFree',//发送邮件名,不一定是邮箱地址的用户名
'send_method' => 'SMTP',
'send_params' =>
array (
'host' => 'smtp.126.com',
// The server to connect. Default is localhost。
//这里是指的邮件服务器,如果你安装bugfree上没有邮件服务器,
//可以使用其他邮件服务器,比如126,地址即为stmp.126.com
'smtp_auth' => true,
//Whether or not to use SMTP authentication.
//Default is FALSE。这里要改成true
'username' => 'xxxx@126.com',
//The username to use for SMTP authentication.//用户名
'password' => '123',
//The password to use for SMTP authentication.//密码
),
),
),
BugFree可以实时和定时发送邮件通知。在新建Bug或Test Case并保存后,指派给和抄送给将收到实时邮件通知。可以在“抄送给”编辑框输入多个用户帐号或者邮件地址,地址之间用逗号分隔。