opencart smtp服务器 提示 Error: EHLO not accepted from server

修改system/library/mail.php中如下代码:

代码: 全选
fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf);

为:

代码: 全选
fputs($handle, 'EHLO [' . getenv('SERVER_ADDR') . ']' . $this->crlf);