MailWriter Class Reference

Sortie en mail. More...

Inherits SplObserver.

List of all members.

Public Member Functions

Public Attributes

  • const SUBJECT = 'erreur signalée'

Private Attributes


Detailed Description

Sortie en mail.

Definition at line 224 of file osC_ErrorHandler.php.


Constructor & Destructor Documentation

MailWriter::__construct ( to  ) 

Definition at line 229 of file osC_ErrorHandler.php.

00230     {
00231         $this->_to = (string)$to;
00232         if(preg_match('#[a-z0-9_-]*[@][a-z0-9]*[.][a-z]{2,4}#', $this->_to) === false) {
00233             throw new Exception('Adresse email non conforme');
00234         }
00235     }


Member Function Documentation

MailWriter::update ( SplSubject errorHandler  ) 

Definition at line 237 of file osC_ErrorHandler.php.

00238     {
00239         @mail($this->_to,self::SUBJECT, $errorHandler->getError());
00240     }


Member Data Documentation

MailWriter::$_to [private]

Definition at line 226 of file osC_ErrorHandler.php.

const MailWriter::SUBJECT = 'erreur signalée'

Definition at line 227 of file osC_ErrorHandler.php.


The documentation for this class was generated from the following file: