public function send(SMail $mail) { if (!isset($this->socket)) { $this->connect(); $this->helo(); } else { $this->rset(); } $this->mail($mail->get_return_path()); foreach ($mail->get_recipients() as $recipient) $this->rcpt($recipient); return $this->data($mail->__toString()); }
public function send(SMail $mail) { SLogger::get_instance()->log($mail->__toString()); }
public function send(SMail $mail) { return $mail->__toString(); }