3 Each template is split into two sections. A block of headers and a body. These
4 sections are separated by a blank line.
6 Templates are processed by the L<Text::Template> module. This module
7 allows you to embed arbitrary Perl code into your templates. Text wrapped
8 in curly braces, C<{...}> is interpreted as Perl. See L<Text::Template>
13 Your template may specify arbitrary email headers. Each header is a name, a
14 colon, then a value. So, for example, to specify a subject, you can use:
16 Subject: Thanks for your bug report.
18 =head3 Special Headers
22 =item Content-Type: text/html
24 The special header "Content-Type: text/html" tells RT that the template should
25 be parsed as HTML. RT will automatically make the outgoing message multipart.
26 That way, recipients who can read only plaintext email will receive something
27 readable, while users with clients which can display HTML will receive the full
28 experience. Please be aware that HTML support in mail clients varies greatly,
29 much more so than different web browsers.
31 We welcome contributions of HTML-ization of builtin templates.
37 The variables that your templates may use include:
43 The transaction object.
47 The value of the "rtname" config variable.
51 The ticket object. This is only set during a ticket transaction.
55 This is not an object, but the name of the first requestor on the ticket.
56 If this is not what you need, inspect C<< $Ticket->Requestors >>.
60 A localization function. See L<Locale::Maketext>.