src/Flowcode/UserBundle/Service/UserNotificationService.php
public function notifyPasswordReset(User $user, $plainPassword)
    {
        $fromEmail = $this->container->getParameter("default_mail_from");
        $fromName = $this->container->getParameter("default_mail_from_name");
        $appName = $this->container->getParameter("default_app_name");
        $subject = "[$appName] Cambio de datos";
        $toEmail = $user->getEmail();
        $toName = $user->getFirstname();
        $body = $this->container->get('templating')->render('FlowcodeUserBundle:Email:notifyPasswordReset.html.twig', array('user' => $user, 'plainPassword' => $plainPassword));

        $this->mailSender->send($toEmail, $toName, $fromEmail, $fromName, $subject, $body, true);
    }
public function notifyPasswordReset(User $user, $plainPassword)
    {
        $fromEmail = $this->container->getParameter("default_mail_from");
        $fromName = $this->container->getParameter("default_mail_from_name");
        $appName = $this->container->getParameter("default_app_name");
        $subject = "[$appName] Cambio de datos";
        $toEmail = $user->getEmail();
        $toName = $user->getFirstname();
        $body = $this->container->get('templating')->render('FlowcodeUserBundle:Email:notifyPasswordReset.html.twig', array('user' => $user, 'plainPassword' => $plainPassword));

        $this->mailSender->send($toEmail, $toName, $fromEmail, $fromName, $subject, $body, true);
    }
public function notifyPasswordReset ( User $ user , $ plainPassword ) { $ fromEmail = $ this -> container -> getParameter ( "default_mail_from" ) ; $ fromName = $ this -> container -> getParameter ( "default_mail_from_name" ) ; $ appName = $ this -> container -> getParameter ( "default_app_name" ) ; $ subject = "[$appName] Cambio de datos" ; $ toEmail = $ user -> getEmail ( ) ; $ toName = $ user -> getFirstname ( ) ; $ body = $ this -> container -> get ( 'templating' ) -> render ( 'FlowcodeUserBundle:Email:notifyPasswordReset.html.twig' , array ( 'user' => $ user , 'plainPassword' => $ plainPassword ) ) ; $ this -> mailSender -> send ( $ toEmail , $ toName , $ fromEmail , $ fromName , $ subject , $ body , true ) ; }
Notify Password reset.

@param User   $user          [description]
@param [type] $plainPassword [description]
Notify Password reset .