| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 2 | public function sendMail($to, $subject, $content, $headers = array()) |
|
| 22 | { |
||
| 23 | 2 | $headers['From'] = '[email protected]'; |
|
| 24 | 2 | $headerString = ''; |
|
| 25 | |||
| 26 | 2 | foreach ($headers as $header => $headerValue) { |
|
| 27 | 2 | $headerString .= $header . ': ' . $headerValue . "\r\n"; |
|
| 28 | 2 | } |
|
| 29 | |||
| 30 | 2 | mail($to, $subject, $content, $headerString); |
|
| 31 | } |
||
| 32 | } |