core/components/Mail.php
public function send()
    {
        if (empty($this->mailer->Subject) || empty($this->mailer->Body)) {
            throw new Exception("Mail subject() and body() can not be empty in order to send mail.");
        }
        if (!$this->getMailer()->send()) {
            Yii::error($this->getError(), __METHOD__);
            return false;
        }
        return true;
    }
public function send()
    {
        if (empty($this->mailer->Subject) || empty($this->mailer->Body)) {
            throw new Exception("Mail subject() and body() can not be empty in order to send mail.");
        }
        if (!$this->getMailer()->send()) {
            Yii::error($this->getError(), __METHOD__);
            return false;
        }
        return true;
    }
public function send ( ) { if ( empty ( $ this -> mailer -> Subject ) || empty ( $ this -> mailer -> Body ) ) { throw new Exception ( "Mail subject() and body() can not be empty in order to send mail." ) ; } if ( ! $ this -> getMailer ( ) -> send ( ) ) { Yii :: error ( $ this -> getError ( ) , __METHOD__ ) ; return false ; } return true ; }
Trigger the send event of the mailer
@return bool
@throws Exception
Trigger the send event of the mailer