Removed the read from Configure for X-Mailer.

This commit is contained in:
Juan Basso 2011-04-09 23:09:08 -04:00
parent 554d32e76d
commit 22445e2583

View file

@ -546,11 +546,8 @@ class CakeEmail {
$headers += $this->_headers; $headers += $this->_headers;
if (!isset($headers['X-Mailer'])) { if (!isset($headers['X-Mailer'])) {
$headers['X-Mailer'] = Configure::read('Email.XMailer');
if (empty($headers['X-Mailer'])) {
$headers['X-Mailer'] = self::EMAIL_CLIENT; $headers['X-Mailer'] = self::EMAIL_CLIENT;
} }
}
if (!isset($headers['Date'])) { if (!isset($headers['Date'])) {
$headers['Date'] = date(DATE_RFC2822); $headers['Date'] = date(DATE_RFC2822);
} }