Html in email not working with table


#1

Hello

I have a template that is used for AutoReply by sending ticket. I want to use a table in this template. my code is like below:

Subject: Change Management AutoReply: {$Ticket->Subject}
Content-Type: text/html
<body>
<p dir="rtl">
greetings: your request has been sent. here is the information:

<table>
  <tr>
    <th>name</th>
    <th>description</th>
  </tr>
  <tr>
    <td>cable</td>
    <td>remove cable</td>
  </tr>
</table>
</p>
<br/>
{$Ticket->QueueObj->CorrespondAddress()}</p>
</body>

in result email I can not see any table. can anyone guid me what should I do?


#2

What actually appears in the email?


#3

Hi

Dont think you need the body tags

regards
Garry


#4

Have you activated MessageBoxRichText in your RT_SiteConfig.pm?

https://docs.bestpractical.com/rt/4.4.3/RT_Config.html#Message-box-properties


#5

hi

the email looks like this:


#6

hi

I omitted body tag but that does’nt have any effect


#7

I set $MessageBoxRichText to 1 in RT_SiteConfig.pm like this:

Set($MessageBoxRichText, 1);

but that dosn’t work. I also restarted request tracker service. is there any thing wrong here?


#8

What do ou see in the raw message?


#9

the raw message is like this:


#10

Hi Dornaz

I mean the raw source, not how you see it in a client

Garry


#11

Hi Dornaz

You could try the following:

Add border=“1” to the table tag and see what happens

regards
Garry


#12

Hi G.Booth

wow…you are right! thanks for your help