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 |