/**
  * 
  * @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);
 }
 /**
  * 
  * @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 ArrayIterator
  */
 public function getIterator()
 {
     return $this->message->getIterator();
 }
 /**
  * (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);
 }