public function sendNotificationEmail($mail, $from=null)
    {
        $templateName = 'CoreBundle:Email:notification.email.html.twig';

        $context = array(
            'mail' => $mail
        );
        
        if(is_null($from)){
            $this->sendMessage(
                $templateName, 
                $context,  
                $mail->getSender(),
                $mail->getRecipient(),
                $mail->getAttachment()
                );
        }else{
            $this->sendMessage(
                $templateName, 
                $context,  
                $from,
                $mail->getRecipient(),
                $mail->getAttachment()
                );
        }
        
    }
public function sendNotificationEmail($mail, $from=null)
    {
        $templateName = 'CoreBundle:Email:notification.email.html.twig';

        $context = array(
            'mail' => $mail
        );
        
        if(is_null($from)){
            $this->sendMessage(
                $templateName, 
                $context,  
                $mail->getSender(),
                $mail->getRecipient(),
                $mail->getAttachment()
                );
        }else{
            $this->sendMessage(
                $templateName, 
                $context,  
                $from,
                $mail->getRecipient(),
                $mail->getAttachment()
                );
        }
        
    }
public function sendNotificationEmail ( $ mail , $ from = null ) { $ templateName = 'CoreBundle:Email:notification.email.html.twig' ; $ context = array ( 'mail' => $ mail ) ; if ( is_null ( $ from ) ) { $ this -> sendMessage ( $ templateName , $ context , $ mail -> getSender ( ) , $ mail -> getRecipient ( ) , $ mail -> getAttachment ( ) ) ; } else { $ this -> sendMessage ( $ templateName , $ context , $ from , $ mail -> getRecipient ( ) , $ mail -> getAttachment ( ) ) ; } }
Send an email from notification

@param MailLog $mail

@return void
Send an email from notification