# Draft your template

Source: https://yamm.com/help/usage/create-campaign/draft-template/

YAMM uses a regular Gmail draft as the email template for your mail merge. You can [create it in Gmail](#start-from-gmail) — as a plain email or a Gmail layout you can fine-tune with HTML/CSS — or [design it in Google Docs](#start-from-google-docs), which is ideal for collaborating with your team and writing in a comfortable, full-page editor. Pick whichever approach fits your needs and skills.

## Start from Gmail

With YAMM, creating an email template is easy: you just need a Gmail draft.

**Prerequisites**

Use the web version of Gmail, not Inbox or another tool.

1. Open [Gmail](https://gmail.com) and click **Compose**.

   ![Click Compose in Gmail](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-1.png)

2. In the **New Message** window:

   1. **Leave the To field empty.** YAMM fills it in from the [`Email` column](https://yamm.com/help/usage/create-campaign/build-contact-list/index.md) when it sends.

   2. Add a subject. [Use markers](https://yamm.com/help/usage/create-campaign/personalize-content/index.md) if you want to personalize it (`Hi {{First name}}, ...`).

   3. Draft the body, again with markers (for example, `Dear {{First name}} {{Last name}},`).

   ![Annotated Gmail draft with markers highlighted in the subject and body](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/create-email-template-in-gmail-3.png)

3. Close the draft. Gmail saves it automatically in your **Drafts** folder.

Warning: Don't delete your draft!

Your draft is ready to be used as a template for your email campaign. To give it a more designed look, you can optionally start from a Gmail layout, or fine-tune the HTML/CSS if you're comfortable with code.

**Use Gmail layouts**

Send professional-looking, mass-personalized emails by starting from a ready-made Gmail layout.

[Watch the video on YouTube](https://www.youtube.com/watch?v=PwXzoElT_6g)

**Prerequisites**

You have a Google Workspace account with Gmail Layouts enabled.

1. In the New message window, select the layout icon.

   ![Layout icon highlighted in the Gmail compose toolbar](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-2.png)

2. (Optional) To customize the default style, click **Default styling** and edit logos, colors, fonts, footer details, and links.

   ![Default styling link highlighted in the Select a layout dialog](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-3.png)

   ![Logo, color, font, footer, and link fields in the Edit layout preferences dialog](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-4.png)

3. Click **Save changes**.

   ![Save changes button in the Edit layout preferences dialog](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-5.png)

4. Select a layout and click **Insert**.

   ![Insert button in the Select a layout dialog](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-6.png)

5. Change images, add alt text, add a subject and personalization markers, and set links on any buttons.

   ![Upload and crop a replacement photo in the Gmail layout](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-7.png)

   ![Subject line and body markers highlighted in the Gmail layout draft](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/use-gmail-layouts-to-send-beautiful-personalized-emails-9.png)

**Edit your HTML template**

For finer control, edit the HTML/CSS of a draft directly in Gmail — for example, to tweak the colors or borders of a Gmail layout. Editing the rendered draft (rather than pasting raw code in plain-text mode) keeps YAMM's open and click tracking working.

[Watch the video on YouTube](https://www.youtube.com/watch?v=CVyJH7xhOS4)

**With your browser's developer tools**

1. Open your draft in Gmail, right-click it > **Inspect**, and click **Elements**.

   ![Open the browser developer tools on a Gmail draft](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/customize-templates-with-browser-html-css-editor-2.png)

2. Click the inspect icon, then click the element you want to change (e.g., a header). The matching line is highlighted in the panel.

   ![Inspect an element in the Gmail draft](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/customize-templates-with-browser-html-css-editor-3.png)

3. In the **Styles** panel, change the property you want (e.g., `background-color`), and repeat for any other elements.

   ![Change a CSS property in the Styles panel](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/customize-templates-with-browser-html-css-editor-5.png)

Your draft updates live:

![Result of the customized template](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/customize-templates-with-browser-html-css-editor-8.png)

See also [Google's developer tools docs](https://developers.google.com/web/tools/chrome-devtools/iterate/inspect-styles/) and the [CSS properties supported in Gmail](https://developers.google.com/gmail/design/reference/supported_css).

**With a Gmail HTML editor extension**

If you'd rather not use developer tools, install a Gmail HTML editor extension such as [HTML Editor for Gmail](https://chromewebstore.google.com/detail/html-editor-for-gmail-by/ioinaaeeacahcmbgfmeaaofhfkijpdeb). It adds an HTML editor to your compose window, so you can paste and edit your code with clean rendering — and, unlike plain-text mode, your draft stays trackable in YAMM.

## Start from Google Docs

Google Docs is the best option when you want to **build an email together with your team** — several people can co-edit the same document, leave comments, and suggest changes before anyone sends it. Google Docs turns your document into a Gmail draft for you, and YAMM uses that draft as the template.

1. [Create a document](https://docs.new).

2. In the menu bar, select **Insert** > **Building blocks** > **Email draft**.

   ![Insert the Email draft building block in Google Docs](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/create-simple-layouts-insert.png)

3. In the email draft block:

   1. Leave the **To** field empty. YAMM fills it in from the [`Email` column](https://yamm.com/help/usage/create-campaign/build-contact-list/index.md) when it sends.

   2. Add a subject. [Use markers](https://yamm.com/help/usage/create-campaign/personalize-content/index.md) if you want to personalize it (`Hi {{First name}}, ...`).

   3. Draft the body, again with markers (for example, `Dear {{First name}} {{Last name}},`).

   ![Write the email template in the Email draft block](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/create-simple-layouts-write-docs.png)

4. Click the **Gmail icon**. Google Docs creates the Gmail draft.

   ![Click the Gmail icon to create the draft](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/create-simple-draft-click-preview.png)

5. Close the Gmail preview window.

   ![Close the Gmail preview window](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/create-simple-draft-close-preview.png)

Gmail saves it automatically in your **Drafts** folder. The draft is saved and available in YAMM as an email template.

![The created draft in the Gmail Drafts folder](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/create-simple-draft-result.png)

Tip: If you later edit your template in Google Docs, click the **Gmail icon** again to create a **new** Gmail draft.

## Star your draft to find it faster

If you keep a lot of drafts, star the one you want to use as your template: in Gmail, go to your **Drafts** folder and click the star next to it.

![A starred draft in the Gmail Drafts folder](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/star-draft-gmail.png)

YAMM then lists starred drafts at the top of the **Email Template** dropdown, so it's quicker to find when you start your mail merge.

![The starred draft at the top of the YAMM Email Template list](https://yamm.com/help/images/docs/usage/create-campaign/draft-template/star-draft-yamm.png)

## What's next

- Personalize the email template [content](https://yamm.com/help/usage/create-campaign/personalize-content/index.md), [attachments](https://yamm.com/help/usage/create-campaign/personalize-attachments/index.md), or [links and images](https://yamm.com/help/usage/create-campaign/personalize-links-and-images/index.md).

- [Send a test email](https://yamm.com/help/usage/create-campaign/send-test-email/index.md) to preview your email template.
