Phalcon\Mailer\Message::content PHP Method

content() public method

Set the body of this message, either as a string, or as an instance of {@link \Swift_OutputByteStream}.
See also: Swift_Message::setBody()
public content ( mixed $content, string $contentType = self::CONTENT_TYPE_HTML, string $charset = null )
$content mixed
$contentType string optional
$charset string optional
    public function content($content, $contentType = self::CONTENT_TYPE_HTML, $charset = null)
    {
        $this->getMessage()->setBody($content, $contentType, $charset);
        return $this;
    }