使用未定义的常量DATE_RFC2822 [英] Use of undefined constant DATE_RFC2822

查看:83
本文介绍了使用未定义的常量DATE_RFC2822的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cakephp邮件组件发送电子邮件。

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.

我没有修改该组件或cakephp核心的任何文件中的任何内容(显然配置文件除外)

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

任何想法?

推荐答案

好吧,此常量用于设置日期格式,cakephp邮件组件尝试使用它,但似乎未定义,可能您的PHP版本不支持它。

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.

这篇关于使用未定义的常量DATE_RFC2822的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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