public function sendConfirmationEmailMessage(UserInterface $user, $engine)
{
$template = $this->parameters['confirmation.template'];
$url = $this->router->generate('fos_user_user_confirm', array('token' => $user->getConfirmationToken()), true);
$rendered = $this->templating->render($template . '.txt.' . $engine, array('user' => $user, 'confirmationUrl' => $url));
$this->sendEmailMessage($rendered, $this->getSenderEmail('confirmation'), $user->getEmail());
}