summaryrefslogtreecommitdiff
path: root/FS/FS/TicketSystem/RT_Internal.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/TicketSystem/RT_Internal.pm')
-rw-r--r--FS/FS/TicketSystem/RT_Internal.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm
index c49f40f02..52e3922c9 100644
--- a/FS/FS/TicketSystem/RT_Internal.pm
+++ b/FS/FS/TicketSystem/RT_Internal.pm
@@ -134,6 +134,11 @@ Cc: email address or arrayref of addresses
Ticket message
+=item mime_type
+
+MIME type to use for message. Defaults to text/plain. Specifying text/html
+can be useful to use HTML markup in message.
+
=item custnum
Customer number (see L<FS::cust_main>) to associate with ticket.
@@ -165,7 +170,7 @@ sub create_ticket {
my $mimeobj = MIME::Entity->build(
'Data' => $param{'message'},
- 'Type' => 'text/plain',
+ 'Type' => ( $param{'mime_type'} || 'text/plain' ),
);
my %ticket = (