/**
  * 
  * @param fpBaseErrorNotifierMessage $message
  */
 public function notify(fpBaseErrorNotifierMessage $message)
 {
     $path = $this->getOption('path');
     file_exists($path) && unlink($path);
     $data = "\n      Content-type: {$message->format()}\n      Subject: {$message->subject()}\n      \n      {$message}";
     file_put_contents($path, $data);
 }
 /**
  * 
  * @return string 
  */
 public function subject()
 {
     return substr($this->message->subject(), 0, 255) . (255 < strlen($this->message->subject()) ? '...' : '');
 }
 /**
  * (non-PHPdoc)
  * @see plugins/fpErrorNotifierPlugin/lib/driver/fpBaseErrorNotifierDriver#notify($message)
  */
 public function notify(fpBaseErrorNotifierMessage $message)
 {
     $swiftMessage = new Swift_Message();
     $swiftMessage->setTo($this->getOption('to'))->setFrom($this->getOption('from'))->setBody((string) $message)->setContentType($message->format())->setSubject($message->subject());
     @fpErrorNotifier::getInstance()->context()->getMailer()->send($swiftMessage);
 }
 /**
  * 
  * @param fpBaseErrorNotifierMessage $message
  */
 public function notify(fpBaseErrorNotifierMessage $message)
 {
     $headers = "From: {$this->getOption('from')}\r\n";
     $headers .= "Content-type: {$message->format()}\r\n";
     @mail($this->getOption('to'), $message->subject(), (string) $message, $headers);
 }
 /**
  * 
  * @return string 
  */
 public function subject()
 {
     return $this->message->subject();
 }