M2 Newsletter发送出现CRLF injection detected错误的解决方法

作者:admi... 点击数: 0 收藏到会员中心
最后编辑时间: 2020-12-31 21:28

12202031_01.jpg

先升级SMTP或是默认发信组件或是更改组件

 
付费内容限时免费中...

2,继续看日志,如果 是NEWSLETTER template的encoding问题的话,则

修改文件

vendor/magento/framework/Mail/EmailMessage.php

中的内容

 public function toString(): string
    {
      
        return $this->message->toString();
    }


为以下内容

 public function toString(): string
    {
        $this->message->setEncoding(encoding:'utf-8');
        return $this->message->toString();
    }


内容说明:
如您需要转载本文请保留以下信息是对作者发文的支持与尊重:

M2 Newsletter发送出现CRLF injection detected错误的解决方法 来源于 https://www.magentola.com/news-read-201.html
上一篇:M2后台设置发送Newsletter到中途却无法执行的奇葩问题处理方法
下一篇:M2.x为什么MAGENTOLA团队不建议使用Varnish
相关内容
产品推荐