From 22445e25839aba961b7cf179af15b727b5a7fbb9 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Sat, 9 Apr 2011 23:09:08 -0400 Subject: [PATCH] Removed the read from Configure for X-Mailer. --- lib/Cake/Network/CakeEmail.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Cake/Network/CakeEmail.php b/lib/Cake/Network/CakeEmail.php index d44eb5d9f..cfdf4c7d3 100644 --- a/lib/Cake/Network/CakeEmail.php +++ b/lib/Cake/Network/CakeEmail.php @@ -546,10 +546,7 @@ class CakeEmail { $headers += $this->_headers; 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'])) { $headers['Date'] = date(DATE_RFC2822);