---
schema_version: "1"
id: b10d5fc593ed05cbec149f425c89392f82e66d0f2fabc5367cb1a75f9a9ec803
title: Letterhead
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_letterhead.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_letterhead.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8fd4c7ac76f7741797c0e4ad9b156c8d88405dc8661cab3bbb9f0a55dabfa4b8
description: Represents formatting options for the letterhead in an email template. A letterhead defines the logo, page color, and text settings for your HTML email templates. Use letterheads to ensure a consistent look and feel in your company’s emails.
---
# Letterhead

Represents formatting options for the letterhead in an email template. A letterhead defines the logo, page color, and text settings for your HTML email templates. Use letterheads to ensure a consistent look and feel in your company’s emails.

For more information, see “Create Classic Letterheads for Email Templates” in the Salesforce online help. This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

The file suffix for letterheads is .letter and components are stored in the letterhead directory of the corresponding package directory.

## Version

Letterheads are available in API version 12.0 and later.

## Fields

With the exception of logo, and horizontal and vertical alignment, all of these fields are required.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d621375e101">Field Name</th>

              <th class="featureTableHeader  " id="d621375e104">Field Type</th>

              <th class="featureTableHeader  " id="d621375e107">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">available</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type">boolean</td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. Indicates whether this letterhead can be used (<samp class="codeph java">true</samp>) or not (<samp class="codeph java">false</samp>), for example, in an email
                template.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">backgroundColor</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type">string</td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The background color, in hexadecimal, for example
                <samp class="codeph nolang">#FF6600</samp>.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">bodyColor</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type">string</td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The body color in hexadecimal.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">bottomLine</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type">LetterheadLine (enumeration of type string)</td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The style for the bottom line. Valid style values
                include:<a name="LetterheadLine"><!-- --></a>
                <ul class="ul bulletList" id="LetterheadLine">
                  <li class="li">
                    <samp class="codeph nolang">color</samp>. The color of the
                    line in hexadecimal, as a string value.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">height</samp>. The height of
                    the line, as an int value.
                  </li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type">string</td>

              <td class="entry" headers="d621375e107" data-title="Description">Text description of how this letterhead differs from other
                letterheads.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">fullName</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type">string</td>

              <td class="entry" headers="d621375e107" data-title="Description">The internal name of the letterhead, based on the
                <span class="keyword parmname">name</span>, but with white spaces and special
                characters escaped out for validity.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">footer</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type"><a class="xref" href="#LetterheadHeaderFooterTitle">LetterheadHeaderFooter</a></td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The style for the footer.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname" id="emailtemplate_type"><a name="emailtemplate_type"><!-- --></a>header</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type"><a class="xref" href="#LetterheadHeaderFooterTitle">LetterheadHeaderFooter</a></td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The style for the header.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">middleLine</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type"><a class="xref" href="#LetterheadLineTitle">LetterheadLine</a></td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The style for the middle border line in your
                letterhead. Valid style values include:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">color</samp>. The color of the
                    line in hexadecimal, as a string value.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">height</samp>. The height of
                    the line, as an int value.
                  </li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">name</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type">string</td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The name of the letterhead.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e101" data-title="Field Name"><span class="keyword parmname">topLine</span></td>

              <td class="entry" headers="d621375e104" data-title="Field Type"><a class="xref" href="#LetterheadLineTitle">LetterheadLine</a></td>

              <td class="entry" headers="d621375e107" data-title="Description">Required. The style for the top horizontal line below the header.
                Valid style values include:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">color</samp>. The color of the
                    line in hexadecimal, as a string value.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">height</samp>. The height of
                    the line, as an int value.
                  </li>

                </ul>
              </td>

            </tr>

          </tbody>

        </table>

## LetterheadHeaderFooter

LetterheadHeaderFooter represents the properties of a header or footer.

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d621375e340">Field</th>

              <th class="featureTableHeader  " id="d621375e343">Field Type</th>

              <th class="featureTableHeader  " id="d621375e346">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d621375e340" data-title="Field"><span class="keyword parmname">backgroundColor</span></td>

              <td class="entry" headers="d621375e343" data-title="Field Type">string</td>

              <td class="entry" headers="d621375e346" data-title="Description">Required. The background color of the header or footer in
                hexadecimal format.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e340" data-title="Field"><span class="keyword parmname">height</span></td>

              <td class="entry" headers="d621375e343" data-title="Field Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_dashboard.htm#DashboardComponent">DashboardComponent</a>[]
              </td>

              <td class="entry" headers="d621375e346" data-title="Description">Required. The height of the header or footer.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e340" data-title="Field"><span class="keyword parmname">horizontalAlignment</span></td>

              <td class="entry" headers="d621375e343" data-title="Field Type">LetterheadHorizontalAlignment (enumeration of type
                string)</td>

              <td class="entry" headers="d621375e346" data-title="Description">The horizontal alignment of the header or footer. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">None</samp></li>

                  <li class="li"><samp class="codeph nolang">Left</samp></li>

                  <li class="li"><samp class="codeph nolang">Center</samp></li>

                  <li class="li"><samp class="codeph nolang">Right</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e340" data-title="Field"><span class="keyword parmname">logo</span></td>

              <td class="entry" headers="d621375e343" data-title="Field Type">string</td>

              <td class="entry" headers="d621375e346" data-title="Description">The logo which is a reference to a document, for example <samp class="codeph nolang">MyFolder/MyDocument.gif</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d621375e340" data-title="Field"><span class="keyword parmname">verticalAlignment</span></td>

              <td class="entry" headers="d621375e343" data-title="Field Type">LetterheadVerticalAlignment (enumeration of type string)</td>

              <td class="entry" headers="d621375e346" data-title="Description">The vertical alignment of the header or footer. Valid values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">None</samp></li>

                  <li class="li"><samp class="codeph nolang">Top</samp></li>

                  <li class="li"><samp class="codeph nolang">Middle</samp></li>

                  <li class="li"><samp class="codeph nolang">Bottom</samp></li>

                </ul>
              </td>

            </tr>

          </tbody>

        </table>

## LetterheadLine

LetterheadLine represents the properties of a line.

| Field | Field Type | Description |
| --- | --- | --- |
| color | string | Required. The color of the line in hexadecimal format. |
| height | int | Required. The height of the line. |

## Declarative Metadata Sample Definition

<?xml version="1.0" encoding="UTF-8"?>
<Letterhead xmlns="http://soap.sforce.com/2006/04/metadata">
    <available\>true</available\>
    <backgroundColor\>#CCCCCC</backgroundColor\>
    <bodyColor\>#33FF33</bodyColor\>
    <bottomLine\>
        <color\>#3333FF</color\>
        <height\>5</height\>
    </bottomLine\>
    <description\>INITIAL</description\>
    <footer\>
        <backgroundColor\>#FFFFFF</backgroundColor\>
        <height\>100</height\>
        <horizontalAlignment\>Left</horizontalAlignment\>
        <verticalAlignment\>Top</verticalAlignment\>
    </footer\>
    <header\>
        <backgroundColor\>#FFFFFF</backgroundColor\>
        <height\>100</height\>
        <horizontalAlignment\>Left</horizontalAlignment\>
        <verticalAlignment\>Top</verticalAlignment\>
    </header\>
    <middleLine\>
        <color\>#AAAAFF</color\>
        <height\>5</height\>
    </middleLine\>
    <name\>SimpleLetterheadLabel</name\>
    <topLine\>
        <color\>#FF99FF</color\>
        <height\>5</height\>
    </topLine\>
</Letterhead\>

## Wildcard Support in the Manifest File

This metadata type doesn’t support the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").