Ejemplo n.º 1
0
 public function send(Mail $mail)
 {
     if (!isset($this->socket)) {
         $this->connect();
         $this->helo();
     } else {
         $this->rset();
     }
     $this->mail($mail->getReturnPath());
     foreach ($mail->getRecipients() as $recipient) {
         $this->rcpt($recipient);
     }
     return $this->data($mail->__toString());
 }
Ejemplo n.º 2
0
 public function send(Mail $mail)
 {
     return $mail->__toString();
 }