---
title: tm.servicemailtemplate
slug: db/tmservicemailtemplate
createdAt: 2023-12-14T14:10:59.979Z
---

Templates for service mails

## Fields

| FIELD              | TYPE                           | DESCRIPTION                                                                                                                                                                                                                               |
| ------------------ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id                 | `int`                          | Unique ID                                                                                                                                                                                                                                 |
| name               | `string`                       | Name of the service mail template                                                                                                                                                                                                         |
| subject            | `string`                       | Subject line for the service mail template                                                                                                                                                                                                |
| body               | `string`                       | Message body                                                                                                                                                                                                                              |
| optinid            | `int`                          | Only send the mail to customers that have opted in to the opt-in with this optinid                                                                                                                                                        |
| active             | `bool`                         | If true then schedule and send mails                                                                                                                                                                                                      |
| scheduling         | `ServicemailScheduling`        | Subject line for the service mail template                                                                                                                                                                                                |
| excludedpricetypes | `[int]`                        | Only send the mail to customers that have purchased tickets of pricetypes not in this list                                                                                                                                                |
| translations       | `map[k:string t:map v:string]` | A map of language codes to [gettext .po files](http://en.wikipedia.org/wiki/Gettext). More info can be found on the [order mail template overview](https://www.ticketmatic.com/docs/api/settings/communicationanddesign/ordermails) page. |
| createdts          | `timestamp`                    | Created timestamp                                                                                                                                                                                                                         |
| lastupdatets       | `timestamp`                    | Last updated timestamp                                                                                                                                                                                                                    |
| isarchived         | `bool`                         | Whether or not this item is archived                                                                                                                                                                                                      |

