opencart smtp服务器 提示 Error: EHLO not accepted fr...

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

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

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

你可能感兴趣的:(error,smtp服务器)