Use of undefined constant DATE_RFC2822


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?


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.


  • Regex count number of digits excluding space
  • How to call PDOStatement::nextRowset() in Cakephp 3
  • .htaccess is not working by my desires with CakePHP
  • Themes for CakePHP [closed]
  • List all tables in cakePHP 3.x
  • cakephp get schema for list of tables
  • Cakephp 3 - MissingDatasourceConfigException when running phpunit test
  • How to: CakePHP logging in without password?
  • Override FROM image's ENV in Dockerfile
  • writing unicode to binary file in python
  • How to choose which JUnit5 Tags to execute with Maven
  • Cakephp Form Helper
  • where is chrome CSS Reference
  • How to add multiple entries to a plist dictionary with PlistBuddy
  • SCons libraries and sub-libraries
  • How do I obtain a list of files that changed from svn over a date range?
  • Base Internationalization and “Could not find a storyboard named […]”
  • UITableView takes much longer to load when numberOfRows returns a large number
  • How to write string.Contains(someText) in expression Tree
  • What do I do with this error when I run tests in rails?
  • integrate POCO library in android ndk
  • C++ cout and enum representations
  • Getting error 'Cannot read property 'document' of undefined' while importing exp
  • NUnit 3.0 TestCase const custom object arguments
  • Angular2 component view does not update on value change via method
  • CakePHP ACL tutorial initDB function warnings
  • Adjust width of select element according to selected option's width
  • Time complexity of a program which involves multiple variables
  • Sencha Touch 2.0 Controller refs attribute not working?
  • Accessing IRQ description array within a module and displaying action names
  • Javascript Callbacks with Object constructor
  • Where to put my custom functions in Wordpress?
  • Javascript + PHP Encryption with pidCrypt
  • Apache 2.4 - remove | delete | uninstall
  • bootstrap to use multiple ng-app
  • SetUp method failed while running tests from teamcity
  • Understanding cpu registers
  • Binding checkboxes to object values in AngularJs
  • How to load view controller without button in storyboard?