Html in email not working with table

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?

What actually appears in the email?

Hi

Dont think you need the body tags

regards
Garry

Have you activated MessageBoxRichText in your RT_SiteConfig.pm?

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

hi

the email looks like this:

hi

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

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?

What do ou see in the raw message?

the raw message is like this:

Hi Dornaz

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

Garry

Hi Dornaz

You could try the following:

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

regards
Garry

1 Like

Hi G.Booth

wow…you are right! thanks for your help