Skip to content

Kirby 3.8.4

new Body()

Email body constructor

new Body(array $props = [ ])

Parameters

Name Type Default
$props array [ ]

For the $props parameter, you pass an array with the following data, which will be used to set up the Kirby\Email\Body object:

Name Type Description
html string Sets the HTML content for the email body
text string Sets the plain text content for the email body

Parent class

Kirby\Email\Body