您的位置:軟件測(cè)試 > 開(kāi)源軟件測(cè)試 > 開(kāi)源測(cè)試管理工具 > Testlink
TestLink學(xué)習(xí)之發(fā)送郵件的兩種配置方法
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時(shí)間:[ 2016/1/14 13:55:47 ] 推薦標(biāo)簽:測(cè)試管理工具 軟件測(cè)試工具

  第一種:修改config.inc.php中的[smtp],配置為默認(rèn)本地發(fā)送,用hotmail用戶做接收,調(diào)試成功。ū救宋磭L試這種)
// ----------------------------------------------------------------------------
/** [SMTP] */
// Developer Note:
// these config variable names has been choosed to maintain compatibility
// with code taken from Mantis.
//
// SMTP server Configuration ("localhost" is enough in the most cases)
$g_tl_admin_email = 'tl_admin@127.0.0.1';#按此配置即可
$g_from_email = 'testlink_system@127.0.0.1';#按此配置即可
$g_return_path_email = 'no_replay@127.0.0.1';#按此配置即可
//
# Urgent = 1, Not Urgent = 5, Disable = 0
$g_mail_priority = 5;
//
# Taken from mantis for phpmailer config
//define ("SMTP_SEND",2);
//$g_phpMailer_method = SMTP_SEND;
//
// SMTP Configuration
$g_smtp_host = 'localhost'; # SMTP server
//
// Configure only if SMTP server requires
$g_smtp_username = ''; # user
$g_smtp_password = ''; # password
// ----------------------------------------------------------------------------
  第二種:修改config.inc.php中的[smtp],配置為公司郵箱發(fā)送,用我公司郵箱調(diào)試成功。ū救苏{(diào)試成功)
// ----------------------------------------------------------------------------
/** [SMTP] */
// Developer Note:
// these config variable names has been choosed to maintain compatibility
// with code taken from Mantis.
//
// SMTP server Configuration ("localhost" is enough in the most cases)
$g_smtp_host        = 'smtp.corp.com';  # SMTP 服務(wù)必須配置,可配置你公司發(fā)送郵件服務(wù)器地址
# Configure using custom_config.inc.php
$g_tl_admin_email     = 'test@corp.com'; #問(wèn)題錯(cuò)誤通知,配置你公司的郵箱
$g_from_email         = 'test@corp.com';  # 收到郵件看到的發(fā)送地址
$g_return_path_email  = 'test@corp.com';#如果收到郵件的人進(jìn)行回復(fù)的郵件地址
# Urgent = 1, Not Urgent = 5, Disable = 0
$g_mail_priority = 5;
# Taken from mantis for phpmailer config
define ("SMTP_SEND",2);
$g_phpMailer_method = SMTP_SEND;#使用SMTP協(xié)議進(jìn)行發(fā)送
// Configure only if SMTP server requires authentication
$g_smtp_username    = 'test@corp.com';  # smtp發(fā)送的用戶名
$g_smtp_password    = 'test';  # 發(fā)送用戶的密碼
// ----------------------------------------------------------------------------

軟件測(cè)試工具 | 聯(lián)系我們 | 投訴建議 | 誠(chéng)聘英才 | 申請(qǐng)使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd