[Solved] OTRS API - HTML Body possible?

Moderator: crythias

Post Reply
Snowmanko
OTRS expert
Posts: 52
Joined: 06 Mar 2015, 17:45
OTRS Version?: 6.0.5-1

[Solved] OTRS API - HTML Body possible?

Post by Snowmanko » 03 Jul 2019, 17:58

Hi,
is it possible to inject HTML into body section of OTRS API while using TicketCreate function ?
When I am trying to create ticket with HTML body through API it acts as plaintext and I see HTML tags in body of created ticket.

Thanks.
BR!
Last edited by Snowmanko on 12 Jul 2019, 16:31, edited 1 time in total.
OTRS 6.0.3-1, MySQL

alexus
OTRS superhero
Posts: 285
Joined: 20 Sep 2010, 16:54
OTRS Version?: ITSM 6.0.22
Real Name: Alexey Yusov
Company: Radiant System Group s.r.o
Location: Prague
Contact:

Re: OTRS API - HTML Body possible?

Post by alexus » 05 Jul 2019, 19:37

Hi.

Could you please show request content
Alexey Yusov

Production: OTRS ITSM 6.0.22 on CentOS 7 x64 Linux with MySQL
Tested: OTRS ITSM 5.0.14
Radiant System OTRS Intergrator
RS4OTRS marketplace
Stay tuned on our Facebook
Get OTRS Professional Services - Consulting, Implementation, Training, Development, Support!

skullz
OTRS wizard
Posts: 180
Joined: 24 Feb 2012, 03:58
OTRS Version?: OTRS 6

Re: OTRS API - HTML Body possible?

Post by skullz » 06 Jul 2019, 12:38

ContentType => 'text/plain; charset=ISO-8859-15',

To

ContentType => 'text/html; charset=utf-8',

Snowmanko
OTRS expert
Posts: 52
Joined: 06 Mar 2015, 17:45
OTRS Version?: 6.0.5-1

Re: OTRS API - HTML Body possible?

Post by Snowmanko » 12 Jul 2019, 16:28

Thanks, it worked.
OTRS 6.0.3-1, MySQL

Post Reply