getHeaders(array_fill_keys(array('from', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'bcc'), true)); $to = $headers['To']; unset($headers['To']); $header = $this->_headersToString($headers, $eol); $message = implode($eol, $email->message()); if (ini_get('safe_mode')) { return @mail($to, $email->subject(), $message, $header); } return @mail($to, $email->subject(), $message, $header, (string)Configure::read('Email.Mail.AdditionalParameters')); } }