Mailer/Mailer.php
public function send()
    {
    	if(!$this->getTemplate()->getIsActive())
    	{
    		return $this;
    	}
    	
        if(!$this->isRendered())
	    {
	      $this->render();
	    }
	    
    	$eventParams = array(
    			'mailer'    => $this->getMailer(),
    			'message'   => $this->getMessage(),
    			'template'  => $this->getTemplate()
    	);

    	$this->getMailer()->send($this->getMessage());
    	$this->sentMailer->createSentMail($this->getTemplate());
    
    	return $this;
    }
public function send()
    {
    	if(!$this->getTemplate()->getIsActive())
    	{
    		return $this;
    	}
    	
        if(!$this->isRendered())
	    {
	      $this->render();
	    }
	    
    	$eventParams = array(
    			'mailer'    => $this->getMailer(),
    			'message'   => $this->getMessage(),
    			'template'  => $this->getTemplate()
    	);

    	$this->getMailer()->send($this->getMessage());
    	$this->sentMailer->createSentMail($this->getTemplate());
    
    	return $this;
    }
public function send ( ) { if ( ! $ this -> getTemplate ( ) -> getIsActive ( ) ) { return $ this ; } if ( ! $ this -> isRendered ( ) ) { $ this -> render ( ) ; } $ eventParams = array ( 'mailer' => $ this -> getMailer ( ) , 'message' => $ this -> getMessage ( ) , 'template' => $ this -> getTemplate ( ) ) ; $ this -> getMailer ( ) -> send ( $ this -> getMessage ( ) ) ; $ this -> sentMailer -> createSentMail ( $ this -> getTemplate ( ) ) ; return $ this ; }
Binds the mail with available data
Uses Swift to send it.

@return Mailer $this
Binds the mail with available data Uses Swift to send it .