Example #1
0
 /**
  * Send an email to a user to confirm the subscription
  *
  * @param UserInterface $user
  *
  * @return void
  */
 public function sendSubscribeToNewsletterMessage(Actor $user)
 {
     $templateName = 'CoreBundle:Email:subscription.email.html.twig';
     $context = array('user' => $user);
     $this->sendMessage($templateName, $context, $this->parameters['company']['email'], $user->getEmail());
 }