protected function mail($to, $subject, $body, array $headers)
    {
        mail($to, $subject, $body, implode("\r\n", $headers));
    }
protected function mail($to, $subject, $body, array $headers)
    {
        mail($to, $subject, $body, implode("\r\n", $headers));
    }
protected function mail ( $ to , $ subject , $ body , array $ headers ) { mail ( $ to , $ subject , $ body , implode ( "\r\n" , $ headers ) ) ; }
This function is responsible for sending the actual email.

@param string $to      Recipient email address
@param string $subject Subject of the email
@param string $body    iCalendar body
@param array  $headers List of headers
This function is responsible for sending the actual email .