mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed to MailTransport use configs intead Configure::read().
This commit is contained in:
parent
a9aef5600f
commit
935badff03
1 changed files with 3 additions and 3 deletions
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue