EmailViewHelper extends AbstractTagBasedViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:link.email>

FinalYes

Email link ViewHelper.

Generates an email link incorporating TYPO3s spamProtectEmailAddresses_ TypoScript setting.

.. _spamProtectEmailAddresses: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Setup/Config/Index.html#spamprotectemailaddresses

Examples

Basic email link

::

<f:link.email email="foo@bar.tld" />

Output::

foo(at)bar.tld

Depending on spamProtectEmailAddresses_ setting.

Email link with custom linktext

::

<f:link.email email="foo@bar.tld">some custom content</f:link.email>

Output::

Email link with custom subject and prefilled cc

::

<f:link.email email="foo@bar.tld" subject="Check out this website" cc="foo@example.com"">some custom content</f:link.email>

Output::

some custom content

Depending on spamProtectEmailAddresses_ setting.

Table of Contents

Properties

$tagName  : string

Methods

initializeArguments()  : void
render()  : string

Properties

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : string
Return values
string

        
On this page

Search results