Opencart的 - 不发送电子邮件(通知或联系页) [英] OpenCart - not sending emails (notifications or contact page)

查看:363
本文介绍了Opencart的 - 不发送电子邮件(通知或联系页)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,我的邮件设置是否正确,但我没有收到任何电子邮件,而不是通过接触形式,也为新客户或放置任何订单。

下面是我的当前设置:

我试过:


  1. 更改为SMTP,我得到一个错误,我的主机(IXWebHosting的)我说:
    需要在应用程序中禁用的授权,我不能
    看到一个选项,这个


  2. 电子邮件作为的这里建议


  3. 在底部加入不同的电子邮件到还发送到框
    邮件页


  4. 手动定义从头中的code作为的这里建议


  5. 试过@ gmail.com,@ googlemail.com和@ arabel.co.uk


不幸的是我还没有从Opencart的收到任何电子邮件。我已经联系我的主机和运行测试脚本 - 没有与服务器上的邮件功能或设置有问题,而我刚刚从网上下载Opencart的最新版本mail.php的(虽然这是六个月大和我用的是反正一)

感谢

更新:

它看起来像base64_en code不工作,因为这code:

 回声$头='发件人:。 '=?UTF-8 2 B 2' 。 base64_en code($这个 - >发送器)。 '?='。 '<' 。 $这个 - >从。 '>' 。 $这个 - >换行;
死();

此输出:


  

来源:????= UTF-的8B Tmljaw == =



解决方案

不能完全确定,为什么基地64 EN code是那里是诚实的。打开系统/库/ mail.php 并更改该行

 回声$头='发件人:。 '=?UTF-8 2 B 2' 。 base64_en code($这个 - >发送器)。 '?='。 '<' 。 $这个 - >从。 '>' 。 $这个 - >换行;

  $头=发件人:。 $这个 - >发件人。 '<' 。 $这个 - >从。 '>' 。 $这个 - >换行;

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 placed.

Here are my current settings:

I've tried:

  1. Changing to SMTP, I get an error and my host (IXWebHosting) says I need to disable Authorization within the application, and I cannot see an option to this

  2. Adding -f and -F before the email as suggested here

  3. Adding different emails to the 'also send to' box at the bottom of the Mail page

  4. Manually defining the 'From' header in the code as suggested here

  5. Tried @gmail.com, @googlemail.com and @arabel.co.uk

And unfortunately I still don't receive any email from OpenCart. I've contacted my host and run test scripts - there isn't a problem with the mail function or setup on the server, and I've just downloaded the latest version of mail.php from OpenCart (although this is six months old and the one I was using anyway)

Thanks

UPDATE:

It looks like base64_encode isn't working, because this code:

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

Outputs this:

From: =?UTF-8?B?Tmljaw==?=

解决方案

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;

这篇关于Opencart的 - 不发送电子邮件(通知或联系页)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆