OpenCart - not sending emails (notifications or contact page)

前端 未结 5 2024
走了就别回头了
走了就别回头了 2021-01-15 17:03

As far as I can tell, my mail settings are configured correctly but I\'m not receiving any emails, not through the contact form, nor for new customers or any orders that are

5条回答
  •  一整个雨季
    2021-01-15 17:27

    Not totally sure why the base 64 encode is there to be honest. Open system/library/mail.php and change this line

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

    to

    $header .= 'From: ' . $this->sender . ' <' . $this->from . '>' . $this->newline;
    

提交回复
热议问题