Use of undefined constant DATE_RFC2822

为君一笑 提交于 2019-12-12 04:39:54

问题


I'm trying to send emails with the cakephp mail component.

This is working well but I got this notice in debug mode:

Notice (8): Use of undefined constant DATE_RFC2822 - assumed 'DATE_RFC2822' [CORE/cake/libs/controller/components/email.php, line 599]

It's pretty embarassing since emails have no "send date" when received.

I haven't modified anything in this component or in any file of the cakephp core (except the configuration files obviously)

Any idea?


回答1:


Okay, this constant is used to format dates, cakephp mail component try to use it but it seems to be undefined, probably your version of PHP does not support it.



来源:https://stackoverflow.com/questions/6612313/use-of-undefined-constant-date-rfc2822

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!