FluidEmail

class \TYPO3\CMS\Core\Mail\FluidEmail

Extends
Email

Send out templated HTML/plain text emails with Fluid.

Table of Contents

Constants

FORMAT_BOTH  : mixed = 'both'
FORMAT_HTML  : mixed = 'html'
FORMAT_PLAIN  : mixed = 'plain'

Properties

$format  : string[]
$templateName  : string
$view  : StandaloneView

Methods

__construct()  : mixed
assign()  : mixed
assignMultiple()  : mixed
ensureValidity()  : mixed
format()  : mixed
getBody()  : AbstractPart
getHtmlBody()  : resource|string|null
getTextBody()  : resource|string|null
getViewHelperVariableContainer()  : ViewHelperVariableContainer
setRequest()  : mixed
setTemplate()  : mixed
generateTemplatedBody()  : void
getDefaultVariables()  : array
initializeView()  : void
renderContent()  : string
resetBody()  : void

Constants

FORMAT_BOTH

public mixed FORMAT_BOTH = 'both'

FORMAT_HTML

public mixed FORMAT_HTML = 'html'

FORMAT_PLAIN

public mixed FORMAT_PLAIN = 'plain'

Properties

$format

protected string[] $format = ['html', 'plain']

$templateName

protected string $templateName = 'Default'

Methods

__construct()

public __construct([TemplatePaths|null $templatePaths = null ][, Headers|null $headers = null ][, AbstractPart|null $body = null ]) : mixed

Parameters

$templatePaths : TemplatePaths|null = null
$headers : Headers|null = null
$body : AbstractPart|null = null

assign()

public assign(mixed $key, mixed $value) : mixed

Parameters

$key : mixed
$value : mixed

assignMultiple()

public assignMultiple(array $values) : mixed

Parameters

$values : array

ensureValidity()

public ensureValidity() : mixed

format()

public format(string $format) : mixed

Parameters

$format : string

getBody()

public getBody() : AbstractPart

Return values

AbstractPart

getHtmlBody()

public getHtmlBody([bool $forceBodyGeneration = false ]) : resource|string|null

Parameters

$forceBodyGeneration : bool = false

Return values

resource|string|null

getTextBody()

public getTextBody([bool $forceBodyGeneration = false ]) : resource|string|null

Parameters

$forceBodyGeneration : bool = false

Return values

resource|string|null

getViewHelperVariableContainer()

public getViewHelperVariableContainer() : ViewHelperVariableContainer

Return values

ViewHelperVariableContainer

setRequest()

public setRequest(ServerRequestInterface $request) : mixed

Parameters

$request : ServerRequestInterface

setTemplate()

public setTemplate(string $templateName) : mixed

Parameters

$templateName : string

generateTemplatedBody()

protected generateTemplatedBody([string $forceFormat = '' ]) : void

Parameters

$forceFormat : string = ''

getDefaultVariables()

protected getDefaultVariables() : array

Return values

array

renderContent()

protected renderContent(string $format) : string

Parameters

$format : string

Return values

string
On this page