Testlink邮件设置(Centos 7)
上一篇文章在centos 7上安装了testlink(CentOS 7下安装xampp和testlink),本篇进行邮件设置,可在进行testlink密码修改、用例指派时进行邮件通知
1、修改config.inc.php文件
进入/opt/lampp/htdocs/testlink目录
vi config.inc.php
找到SMTP,修改下面红色字体的几行,保存
/* [SMTP] */
/**
* @var string SMTP server name or IP address ("localhost" should work in the most cases)
* Configure using custom_config.inc.php
* @uses lib/functions/email_api.php
*/
$g_smtp_host = 'localhost'; # SMTP server MUST BE configured
# Configure using custom_config.inc.php
$g_tl_admin_email = 'testlink@testlink.com'; # for problem/error notification
$g_from_email = 'testlink@testlink.com'; # email sender
$g_return_path_email = 'testlink@testlink.com';
/**
* Email notification priority (low by default)
* Urgent = 1, Not Urgent = 5, Disable = 0
**/
$g_mail_priority = 5;
/**
* Taken from mantis for phpmailer config
* select the method to mail by:
* PHPMAILER_METHOD_MAIL - mail()
* PHPMAILER_METHOD_SENDMAIL - sendmail
* PHPMAILER_METHOD_SMTP - SMTP
*/
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
/** Configure only if SMTP server requires authentication */
$g_smtp_username = ''; # user
$g_smtp_password = ''; # password
2、登录testlink系统
(安装及登录testlink见上一篇文章 CentOS 7下安装xampp和testlink)
进入用户管理页面,创建用户,输入自己使用的邮箱地址,保存
然后在用户列表页面,点击某个用户,进入用户详细信息页面
点击下面的“重置密码”,到邮箱中查看,应该会看到testlink发的邮件了