1 <?php
defined('IN_CMS') or die('No direct access allowed.');
5 private static function headers($headers) {
8 foreach($headers as $key => $value) {
9 $str .= $key . ': ' . $value . PHP_EOL
;
15 public static function send($to, $subject, $message, $headers = array()) {
16 return mail($to, $subject, $message, static::headers($headers));