core/components/Mail.php
public function body($body)
    {
        $message = $this->wrapLayout($body);
        $this->getMailer()->Body = $message;
        $alt = empty($this->altBody) ? $this->convertMessageToAltBody($message) : $this->altBody;
        $this->getMailer()->AltBody = $alt;
        return $this;
    }
public function body($body)
    {
        $message = $this->wrapLayout($body);
        $this->getMailer()->Body = $message;
        $alt = empty($this->altBody) ? $this->convertMessageToAltBody($message) : $this->altBody;
        $this->getMailer()->AltBody = $alt;
        return $this;
    }
public function body ( $ body ) { $ message = $ this -> wrapLayout ( $ body ) ; $ this -> getMailer ( ) -> Body = $ message ; $ alt = empty ( $ this -> altBody ) ? $ this -> convertMessageToAltBody ( $ message ) : $ this -> altBody ; $ this -> getMailer ( ) -> AltBody = $ alt ; return $ this ; }
Set the HTML body for the mailer message, if a layout is defined the layout
will automatically wrapped about the html body.

@param string $body The HTML body message
@return \luya\components\Mail
Set the HTML body for the mailer message if a layout is defined the layout will automatically wrapped about the html body .