| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function send(Email $email) |
||
| 22 | { |
||
| 23 | $headers = $email->getHeaders( |
||
| 24 | ['from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'subject'] |
||
| 25 | ); |
||
| 26 | |||
| 27 | trim($this->_headersToString($headers)); |
||
| 28 | $message = trim(implode("\r\n", (array)$email->message())); |
||
| 29 | $result = ['headers' => $headers, 'message' => $message]; |
||
| 30 | |||
| 31 | var_dump($result); |
||
|
|
|||
| 32 | Configure::write('test_transport_email', $result); |
||
| 33 | |||
| 34 | return $result; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |