/**
  * Renders the template on given message
  *
  * All view-centric parts of the message are set by calling
  * this method. Subject, Body (html/plain).
  *
  * @param MessageInterface $message Message to render into
  *
  * @return void
  */
 public function render(MessageInterface $message)
 {
     $message->setSubject($this->renderSection('Subject'));
     $message->setHtmlBody($this->renderSection('BodyHtml'));
     $message->setPlainBody($this->renderSection('BodyText'));
 }
 /**
  * Configures the message
  *
  * @param MessageInterface $message Message impl
  *
  * @return void
  */
 public function configureMessage(MessageInterface $message)
 {
     $message->setSender($this->getAddressList($this->settings['sender.']));
     $message->setReceiver($this->getAddressList($this->settings['receiver.']));
 }