from = $from; $this->to = $to; $this->body = $body; } /** * @return string */ public function getFromEmail() { return $this->from; } /** * @return array */ public function getTo() { $rcpt = explode(',', $this->to); //FIXME this needs to be improved $rcpt = array_filter($rcpt); $rcpt = array_unique($rcpt); return $rcpt; } /** * @return string */ public function toString() { // FIXME we need to remove the BCC fields here return $this->body . $this->CRLF . $this->CRLF . "." . $this->CRLF; } }