From 935badff03bd46ecdf1abbb36c671cb6451573be Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Tue, 12 Apr 2011 23:34:23 -0400 Subject: [PATCH] Fixed to MailTransport use configs intead Configure::read(). --- lib/Cake/Network/Email/MailTransport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Network/Email/MailTransport.php b/lib/Cake/Network/Email/MailTransport.php index 6a1b1336626..229451a088e 100644 --- a/lib/Cake/Network/Email/MailTransport.php +++ b/lib/Cake/Network/Email/MailTransport.php @@ -31,9 +31,9 @@ class MailTransport extends AbstractTransport { * @return boolean */ public function send(CakeEmail $email) { - $eol = Configure::read('Email.Mail.EOL'); - if (!$eol) { - $eol = PHP_EOL; + $eol = PHP_EOL; + if (isset($this->_config['eol'])) { + $eol = $this->_config['eol']; } $headers = $email->getHeaders(array_fill_keys(array('from', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'bcc'), true)); $to = $headers['To'];