multipart-mime.txt.tmpl 1.16 KB
Newer Older
1 2 3
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
  #
5 6
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
7 8 9 10 11 12 13 14 15 16 17 18 19
  #%]

[%# INTERFACE:
  # subject: subject line of message
  # alternatives: array of hashes containing:
  #     type: MIME type
  #     content: verbatim content
  # boundary: a string that has been generated to be a unique boundary
  # recipient: user object for the intended recipient of the message
  # from: Bugzilla system email address
  #%]

From: [% from %]
20
To: [% recipient.email %]
21 22 23
Subject: [[% terms.Bugzilla %]] [% subject %]
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="[% boundary %]"
24
X-Bugzilla-Type: whine
25 26 27 28 29 30 31 32 33 34 35 36 37 38


This is a MIME multipart message.  It is possible that your mail program
doesn't quite handle these properly.  Some or all of the information in this
message may be unreadable.


[% FOREACH part=alternatives %]

--[% boundary %]
Content-type: [% part.type +%]

[%+ part.content %]
[%+ END %]
39
--[% boundary %]--