/**
  * {@inheritDoc}
  */
 public function getEmail()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getEmail', array());
     return parent::getEmail();
 }
Beispiel #2
0
 public function send(User $User, $subject, $htmlBody)
 {
     $message = \Swift_Message::newInstance()->setSubject($subject)->setFrom($this->formEmail, $this->formName)->setTo($User->getEmail(), $User->getUsername())->setBody($htmlBody, 'text/html');
     $this->swiftMailer->send($message);
 }