Testlink 系统邮件SMTP简要配置说明

备注:关键点已用“xxxxxxxxxxxx”注释



// ----------------------------------------------------------------------------

/* [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        = 'mail.downjoy.com';  # SMTP server MUST BE configured

# Configure using custom_config.inc.php

$g_tl_admin_email    = 'xxxxxxxxxxxx@downjoy.com'; # for problem/error notification

$g_from_email        = 'xxxxxxxxxxxx@downjoy.com';  # email sender

$g_return_path_email  = 'xxxxxxxxxxxx@downjoy.com';

/**

* Email notification priority (low by default)

* Urgent = 1, Not Urgent = 5, Disable = 0

**/

$g_mail_priority = 5;

/**

* Taken from mantis for phpmailer config

* select the method to mail by:

* PHPMAILER_METHOD_MAIL - mail()

* PHPMAILER_METHOD_SENDMAIL - sendmail

* PHPMAILER_METHOD_SMTP - SMTP

*/

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;

/** Configure only if SMTP server requires authentication */

$g_smtp_username    = 'xxxxxxxxxxxx@downjoy.com';  # user

$g_smtp_password    = 'xxxxxxxxxxxx';  # password

/**

* This control the connection mode to SMTP server.

* Can be '', 'ssl','tls'

* @global string $g_smtp_connection_mode

*/

$g_smtp_connection_mode = '';

/**

* The smtp port to use.  The typical SMTP ports are 25 and 587.  The port to use

* will depend on the SMTP server configuration and hence others may be used.

* @global int $g_smtp_port

*/

$g_smtp_port = 25;

/**

* @see https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

*      Opportunistic TLS

*/

$g_SMTPAutoTLS = false;

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容