天天看點

TestLink學習三:發送郵件的兩種配置方法

http://www.cnblogs.com/yangxia-test/p/4453042.html

第一種:修改config.inc.php中的[smtp],配置為預設本地發送,用hotmail使用者做接收,調試成功!( 本人未嘗試這種 )

TestLink學習三:發送郵件的兩種配置方法

// ----------------------------------------------------------------------------// 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 = ' [email protected] ';#按此配置即可 $g_from_email = '[email protected]';#按此配置即可 $g_return_path_email = '[email protected]';#按此配置即可 // # 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// ----------------------------------------------------------------------------

TestLink學習三:發送郵件的兩種配置方法

  第二種:修改config.inc.php中的[smtp], 配置為公司郵箱發送,用我公司郵箱調試成功 !( 本人調試成功 )

TestLink學習三:發送郵件的兩種配置方法

// ----------------------------------------------------------------------------// 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 服務必須配置,可配置你公司發送郵件伺服器位址# Configure using custom_config.inc.php$g_tl_admin_email = ' [email protected] '; #問題錯誤通知,配置你公司的郵箱$g_from_email = ' [email protected] '; # 收到郵件看到的發送位址$g_return_path_email = ' [email protected] ';#如果收到郵件的人進行回複的郵件位址# Urgent = 1, Not Urgent = 5, Disable = 0$g_mail_priority = 5; # Taken from mantis for phpmailer configdefine ("SMTP_SEND",2);$g_phpMailer_method = SMTP_SEND;#使用SMTP協定進行發送// Configure only if SMTP server requires authentication$g_smtp_username = ' [email protected] '; # smtp發送的使用者名 $g_smtp_password = ' test '; # 發送使用者的密碼// ----------------------------------------------------------------------------