‪TYPO3CMS  ‪main
TYPO3\CMS\Fluid\ViewHelpers\Link\EmailViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Link\EmailViewHelper:

Public Member Functions

 initializeArguments ()
 
 render ()
 

Protected Attributes

string $tagName = 'a'
 

Detailed Description

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.

Definition at line 75 of file EmailViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\Link\EmailViewHelper::initializeArguments ( )

Definition at line 81 of file EmailViewHelper.php.

◆ render()

TYPO3\CMS\Fluid\ViewHelpers\Link\EmailViewHelper::render ( )

Definition at line 96 of file EmailViewHelper.php.

References $GLOBALS, and TYPO3\CMS\Core\Http\fromRequest.

Member Data Documentation

◆ $tagName

string TYPO3\CMS\Fluid\ViewHelpers\Link\EmailViewHelper::$tagName = 'a'
protected

Definition at line 79 of file EmailViewHelper.php.