# Email Templates

You can use email templates to create form letters for individuals and for mass email campaigns. You enter the message in the template, and then specify variables, such as the recipient's name and email address from your list of campaign targets. When you create a template, you can embed images and attach files from the Sugar repository or from your local file system. When you create a template for an email campaign, you can insert tracker URLs into the template to track campaign activity.

To create an email template, enter the following information:

- Name. Enter a name for the template.
- Description. Enter a brief description about the template.
- Insert Variable. From the drop-down list, select an record such as Contact and an field such as Full Name and click Insert. The system displays the variable in the Body field.
- Insert Tracker URL. This field displays only when you create the template from the Email Marketing Record of an Email campaign. From the drop-down list, select the tracker URL to insert and click Insert URL Reference.
  The Body field display a link named Default link text. The adjoining field displays the tracker name for plain text format. Use this if you want to display the email in plain text format.
- Subject. Enter the title of the message.
- Body. Enter the email message. You can also embed images and add URL links. To view and use the HTML editor, click the down-arrow below the Body field. To view the HTML source text for the Default link text, click Source in the HTML editor. The HTML source code displays in the Body field. Replace "Default link text" with the message that you want to send out to the campaign recipients.
- Edit Plain Text. Select this box to display the email in plain text format. You can choose this option if an email client cannot render HTML code.

Attachments:

- Browse. To attach a file located on your local machine, enter the path to the file or click Browse to navigate to the file location.
- Select Sugar Document. Click this button to attach a document from the Sugar repository and click the file from the Documents List to select it as the attachment.

Click Save to create the template; click Cancel to exit the page without saving your changes.