Exemplo n.º 1
0
 /**
  * Send a text message representing a record.
  *
  * @param string                                $provider Target SMS provider
  * @param string                                $to       Recipient phone number
  * @param \VuFind\RecordDriver\AbstractBase     $record   Record being emailed
  * @param \Zend\View\Renderer\RendererInterface $view     View object (used to
  * render email templates)
  *
  * @throws MailException
  * @return void
  */
 public function textRecord($provider, $to, $record, $view)
 {
     $body = $view->partial('Email/record-sms.phtml', array('driver' => $record, 'to' => $to));
     return $this->text($provider, $to, null, $body);
 }
Exemplo n.º 2
0
 /**
  * Send an email message representing a record.
  *
  * @param string                                $to     Recipient email address
  * @param string                                $from   Sender email address
  * @param string                                $msg    User notes to include in
  * message
  * @param \VuFind\RecordDriver\AbstractBase     $record Record being emailed
  * @param \Zend\View\Renderer\RendererInterface $view   View object (used to
  * render email templates)
  *
  * @throws MailException
  * @return void
  */
 public function sendRecord($to, $from, $msg, $record, $view)
 {
     $subject = $this->translate('Library Catalog Record') . ': ' . $record->getBreadcrumb();
     $body = $view->partial('Email/record.phtml', array('driver' => $record, 'to' => $to, 'from' => $from, 'message' => $msg));
     return $this->send($to, $from, $subject, $body);
 }