Beispiel #1
0
 /**
  * Send an email message.
  *
  * @param \Swift_Message $message
  */
 public function email(\Swift_Message $message)
 {
     $config = $this->config->mail();
     $transport_classname = '\\Swift_' . ucfirst($config['transport']) . 'Transport';
     $transport = $transport_classname::newInstance();
     $mailer = \Swift_Mailer::newInstance($transport);
     $mailer->send($message);
 }