Opencart 确认邮件

Opencart confirmation email

我没有收到关于 opencart 版本 2.1.0.1 的确认。

设置中邮件选项卡的图像如下所示。 opencart email page

谁能帮我解决这个问题?

在 Gmail 和 Opencart 中使用 SMTP 设置时,请使用以下设置:

 - Mail Protocol : SMTP
 - Mail Parameters : (blank) 
 - SMTP Host : ssl://smtp.gmail.com 
 - SMTP Username : <youremail>@gmail.com  
 - SMTP Password : <your password>
 - SMTP Port : 465
 - SMTP Timeout : 5

我找到了答案。

对于 gmail

,您必须关闭此 url https://www.google.com/settings/security/lesssecureapps 中安全性较低的应用

试试这个方法。 转到 public_html/system/library/mail.php 找到这段代码:

$header .= 'From: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . ' <' . $this->from . '>' . $this->newline;
$header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . ' <' . $this->from . '>' . $this->newline;

替换为以下代码:

//$header .= 'From: =?UTF-8?B?' . base64_encode($this->sender) . '?=' . ' <' . $this->from . '>' . $this->newline;
$header .= 'From: emil@youremailid.com' . $this->newline;

if (!$this->reply_to) {
            $header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->sender) . '?=' . ' <' . $this->from . '>' . $this->newline;
} else {
            $header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->reply_to) . '?=' . ' <' . $this->from . '>' . $this->newline;
}

建议备份文件。