第一種:修改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'; #問題錯誤通知,配置你公司的郵箱
$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ā)送用戶的密碼
// ----------------------------------------------------------------------------