public function sendMail($to, $subject = '', $message = '', $headers = '')
    {
        if (empty($headers)) {
            $headers = 'From: ' . APP_SYS_EMAIL;
        }
        mail($to, $subject, $message, $headers);
    }
public function sendMail($to, $subject = '', $message = '', $headers = '')
    {
        if (empty($headers)) {
            $headers = 'From: ' . APP_SYS_EMAIL;
        }
        mail($to, $subject, $message, $headers);
    }
public function sendMail ( $ to , $ subject = '' , $ message = '' , $ headers = '' ) { if ( empty ( $ headers ) ) { $ headers = 'From: ' . APP_SYS_EMAIL ; } mail ( $ to , $ subject , $ message , $ headers ) ; }
Sends an Email.

@param $to
@param string $subject
@param string $message
@param string $headers
Sends an Email .