1

我是 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';
4

1 回答 1

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';
于 2016-01-28T11:30:20.380 回答