---
title: "ViewHelpers"
manual: "Mail system"
version: "4.2"
permalink: "https://docs.typo3.org/permalink/mediaessenz/mail:view-helpers@4.2"
source: "Reference/ViewHelpers/Index.rst"
rendered: "2026-11-03T08:21:25+00:00"
---

# ViewHelpers {#view-helpers}

-   [PreviewLinksViewHelper](https://docs.typo3.org/permalink/mediaessenz/mail:previewlinksviewhelper@4.2)
-   [GetBodyContentViewHelper](https://docs.typo3.org/permalink/mediaessenz/mail:getbodycontentviewhelper@4.2)
-   [RemoveMailBoundariesViewHelper](https://docs.typo3.org/permalink/mediaessenz/mail:removemailboundariesviewhelper@4.2)
-   [ConstantViewHelper](https://docs.typo3.org/permalink/mediaessenz/mail:constantviewhelper@4.2)

## PreviewLinksViewHelper {#previewlinksviewhelper}

### Usage: {#usage}

```html
<f:variable name="previewLinks" value="{mail:previewLinks(uid:uid,pageId:pageId)}"/>
```

### Parameters: {#parameters}

#### uid: {#uid}

Uid of the mail page

#### pageId: {#pageid}

Page id of the mail-sys-folder containing the mail configuration `mod.web_modules.mail.sendOptions`.

### Returns: {#returns}

Preview-links, title, languageUid and flag-icon-identifiers for every language and type (plain/html), grouped by types.
The types (plain and/or html) will be taken from the Page TSconfig parameter `mod.web_modules.mail.sendOptions`
from the given `pageId`, defined with e.g. the [mail configuration module under "Mail format (default)"](https://docs.typo3.org/permalink/mediaessenz/mail:configure-default-settings@4.2).

## GetBodyContentViewHelper {#getbodycontentviewhelper}

Extract the body tag content of the mail html content. Used to embed the mail html content.

### Usage: {#usage-1}

```html
{mail.htmlContent -> mail:getBodyContent()}
```

## RemoveMailBoundariesViewHelper {#removemailboundariesviewhelper}

Remove the mail boundaries from the mail plain content. Used to embed the mail plain text content.

### Usage: {#usage-2}

```html
{mail.plainContent -> mail:removeMailBoundaries()}
```

## ConstantViewHelper {#constantviewhelper}

### Usage: {#usage-3}

```html
   <f:variable name="contentSelectionBoundary" value="{mail:constant(name:'CONTENT_SECTION_BOUNDARY')}"/>
<!--{contentSelectionBoundary}_-->Content for all<!--{contentSelectionBoundary}_END-->
<!--{contentSelectionBoundary}_1-->content for category 1<!--{contentSelectionBoundary}_END-->
<!--{contentSelectionBoundary}_1,2,3-->content for category 1, 2 and 3<!--{contentSelectionBoundary}_END-->
```

### Parameters: {#parameters-1}

#### name: {#name}

Name of the constant

#### classFQN: {#classfqn}

Full qualified name of the class containing the constants. Default: MEDIAESSENZMailConstants

### Returns: {#returns-1}

The value of the constant if exists, otherwise null.
