public function sendContactMessage(array $params)
    {
        $templateName = 'CoreBundle:Email:base.email.html.twig';

        $context = array(
            'params' => $params
        );
        
        $this->sendMessage(
                $templateName, 
                $context,  
                $this->twigGlobal->getParameter('admin_email'), 
                $params['email']
                );
        
        $this->sendMessage(
                $templateName, 
                $context,  
                $params['email'], 
                $this->twigGlobal->getParameter('admin_email')
                );

    }
public function sendContactMessage(array $params)
    {
        $templateName = 'CoreBundle:Email:base.email.html.twig';

        $context = array(
            'params' => $params
        );
        
        $this->sendMessage(
                $templateName, 
                $context,  
                $this->twigGlobal->getParameter('admin_email'), 
                $params['email']
                );
        
        $this->sendMessage(
                $templateName, 
                $context,  
                $params['email'], 
                $this->twigGlobal->getParameter('admin_email')
                );

    }
public function sendContactMessage ( array $ params ) { $ templateName = 'CoreBundle:Email:base.email.html.twig' ; $ context = array ( 'params' => $ params ) ; $ this -> sendMessage ( $ templateName , $ context , $ this -> twigGlobal -> getParameter ( 'admin_email' ) , $ params [ 'email' ] ) ; $ this -> sendMessage ( $ templateName , $ context , $ params [ 'email' ] , $ this -> twigGlobal -> getParameter ( 'admin_email' ) ) ; }
Send an email to a user and admin

@param array $params (name, email, message)

@return void
Send an email to a user and admin