from = $from; $this->message = $message; } /** * @access protected * @description sends a reply to the sender of this message * @param string message * @return null */ protected function reply($message) { $this->sendMessage($this->from,$message); } /** * @access protected * @description sends a message to an address * @param string to email * @param string message * @return null */ protected function sendMessage($to,$message,$headers='') { $headers .= 'From: lamp7command@gmail.com'; mail($to,'',$message,$headers,'-f lamp7command@gmail.com'); } /** * @access public * @description processes message however it needs to be processed * @return null */ abstract public function process(); protected $from; protected $message; } ?>