Body
in package
FinalYes
Represents the body of the email message.
Table of Contents
Properties
- $html : Content|null
- An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
- $text : Content|null
- An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
Methods
Properties
$html
An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
private
Content|null
$html
$text
An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
private
Content|null
$text
Methods
__construct()
public
__construct(Content|array} $input) : mixed
Parameters
- $input : Content|array}
create()
public
static create(Content|array}|Body $input) : self
Parameters
- $input : Content|array}|Body
Return values
selfgetHtml()
public
getHtml() : Content|null
Return values
Content|nullgetText()
public
getText() : Content|null