Testlink- SMTP错误:无法连接到SMTP主机

时间:2016-01-28 10:15:04

标签: testlink

我是Testlink中的管理员用户。我正在尝试重置用户的密码。单击“重置密码”按钮时出现以下消息。 密码重置无法完成。原因:SMTP错误:无法连接到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        = '22';  # SMTP server MUST BE configured**

 # Configure using custom_config.inc.php
 $g_tl_admin_email     = 'amirdjn@gmail.com'; # for problem/error notification
 $g_from_email         = 'OAI-Tools@oneaccess-net.com';  # email sender
 $g_return_path_email  = 'amirdjn@gmail.com';

1 个答案:

答案 0 :(得分:0)

您无法连接到SMTP主机,因为

  

必须配置SMTP服务器**

只需在配置文件中设置 $ g_smtp_host

/* [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
 */
 # SMTP server MUST BE configured**
 $g_smtp_host        = 'smtp_host_fqdn';

 # Configure using custom_config.inc.php
 $g_tl_admin_email     = 'amirdjn@gmail.com'; # for problem/error notification
 $g_from_email         = 'OAI-Tools@oneaccess-net.com';  # email sender
 $g_return_path_email  = 'amirdjn@gmail.com';