前几天在设置osTicket发件邮箱的时候,出现authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]错误。
.jpg)
国内百度搜索无果后,在osTicket的官方论坛上找到了解决方案
:
- 进入osTicket的
include/pear/Net目录,打开Smtp.php。 - 修改
第467行,将
if (version_compare (PHP_VERSION, '5 .1.0 ','>=') & & (isset ($ this-> _esmtp [' STARTTLS ']) | | ($ this-> _esmtp [' STARTTLS '] == true)) ) {
替换为
if (version_compare (PHP_VERSION, '6 .1.0 ','>=') & & (isset ($ this-> _esmtp [' STARTTLS ']) | | ($ this-> _esmtp [' STARTTLS '] == true)) ) {
- 保存。