/**
  * Send the email, applying any attributes to the mailer before sending.
  *
  * @param array $attributes An array of attributes to pass when sending
  * @return boolean True if the email was successfully sent
  */
 public function send(array $attributes = array())
 {
     $sent = parent::send($attributes);
     $sent = $this->mailer->Send();
     if ($sent !== true) {
         $this->modx->loadClass('error.modError');
         $this->error = new modError($this->modx);
         $this->error->addError($this->mailer->ErrorInfo);
     }
     return $sent;
 }
Exemplo n.º 2
0
 /**
  * Send the email, applying any attributes to the mailer before sending.
  *
  * @param array $attributes An array of attributes to pass when sending
  * @return boolean True if the email was successfully sent
  */
 public function send(array $attributes = array())
 {
     parent::send($attributes);
     $sent = $this->mailer->Send();
     if ($sent !== true) {
         $this->error = $this->modx->getService('error.modError');
         $this->error->addError($this->mailer->ErrorInfo);
     }
     return $sent;
 }
Exemplo n.º 3
0
 /**
  * Send the email, applying any attributes to the mailer before sending.
  *
  * {@inheritdoc}
  */
 public function send(array $attributes = array())
 {
     $sent = parent::send($attributes);
     $sent = $this->mailer->Send();
     return $sent;
 }