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