Webiny\Component\Mailer\Bridge\SwiftMailer\Message::setBody PHP Method

setBody() public method

Set the message body.
public setBody ( string $content, string $type = 'text/html', string $charset = 'utf-8' ) : Webiny\Component\Mailer\MessageInterface
$content string The content of the body.
$type string Content type. Default 'text/html'.
$charset string Content body charset. Default 'utf-8'.
return Webiny\Component\Mailer\MessageInterface
    public function setBody($content, $type = 'text/html', $charset = 'utf-8')
    {
        $this->message->setBody($content, $type, $charset);
        return $this;
    }