code: public function createAndSendMessageFromTemplate()
      {
          $args = func_get_args();
          if (empty($args[0])) {
              throw new \RuntimeException('First parameter must be a template filename or EmailTemplate entity');
              
          } elseif ($args[0] instanceof EmailTemplate) {
              $method = 'createMessageFromTemplateEntity';
              
          } else {
              $method = 'createMessageFromTemplateFile';
          }
          
          $message = call_user_func_array(array($this, $method), $args);
          $this->mailer->send($message);
  
          return true;
      }
docs: This method creates and sends an email message using the given template
  
  One of two signatures:
  
  function(EmailTemplate $template, array $parameters = array())
  function($template, $params, $subject, $recipient, $sender = null)
  
  @return bool
  @throws \RuntimeException