---
title: "Displaying the sender or recipient email (legacy templates)"
slug: "displaying-sender-or-recipient-email-pre-2022-legacy"
description: "Insert the sender's or recipient's email address in a legacy signature or disclaimer with $sgsender; and $sgrecipient; in the template HTML, not as a field."
updated: 2024-01-14T02:32:54.000Z
canonical: "https://help.opensense.com/docs/displaying-sender-or-recipient-email-pre-2022-legacy"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.opensense.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Displaying the sender or recipient email (legacy templates)

## Overview

This article is for pre-2022 templates, built with our legacy HTML syntax: **use it if your tags are in `$tag;` format.** If you use Liquid templates, see [Displaying the sender or recipient email (Liquid templates)](https://help.opensense.com/docs/displaying-sender-or-recipient-email-new-liquid-templates).

Fill in the sender's and recipient's email addresses in the signature automatically, with `$sgsender;` and `$sgrecipient;`.

## Common uses

- Disclaimers
- The email field in signature templates

![A signature template preview with $sgsender; as the email value and in the disclaimer, which also uses $sgrecipient;](https://help.opensense.com/media/olddisplaysender1-b2b15e2638f3.png)

## Adding the sender or recipient email

Replace the email field or email value with `$sgsender;` or `$sgrecipient;` in the HTML.

:::caution[Only in the HTML]
**Don't** add `$sgsender;` or `$sgrecipient;` as a field under **Settings & Fields** on the signature template. **It only needs to be added to the HTML.**
:::

![HTML for the email line, with a mailto link to $sgsender; and $sgsender; as the link text](https://help.opensense.com/media/olddisplaysender2-e36097cbbed4.png)

## What's next

- [HTML and field types (legacy templates)](https://help.opensense.com/docs/html-field-types-1)

For further help, contact Opensense Support at [help@opensense.com](mailto:help@opensense.com).
