Skip to content

Commit

Permalink
Fixed to MailTransport use configs intead Configure::read().
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 13, 2011
1 parent a9aef56 commit 935badf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Network/Email/MailTransport.php
Expand Up @@ -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'];
Expand Down

0 comments on commit 935badf

Please sign in to comment.