Skip to content

Commit

Permalink
Adding missing import in EmailComponent.
Browse files Browse the repository at this point in the history
Fixes #1948
  • Loading branch information
markstory committed Aug 29, 2011
1 parent ff0119b commit 443ff92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/controller/components/email.php
Expand Up @@ -18,6 +18,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Core', 'Multibyte');
App::import('Core', 'String');

/**
* EmailComponent
Expand Down Expand Up @@ -588,7 +589,7 @@ function _createHeader() {

if ($this->messageId !== false) {
if ($this->messageId === true) {
$headers['Message-ID'] = '<' . String::UUID() . '@' . env('HTTP_HOST') . '>';
$headers['Message-ID'] = '<' . String::uuid() . '@' . env('HTTP_HOST') . '>';
} else {
$headers['Message-ID'] = $this->messageId;
}
Expand Down

0 comments on commit 443ff92

Please sign in to comment.