Forums

custom email template Layout changed

mfeindt 13 Apr, 2016
Hi there...

while setting up a mail-template I stumpled across a problem:

In the custom Email-template-textbox (Editor is turned off because i also using php code inside the template) i have a table like the following one.


<table style="width: 100%;">
    <tr>
        <td style="width: 30%;"><b>Anrede:</b><br><i>(title)</i><td>
        <td style="width: 70%;">{title_text}<td>
    </tr>
    <tr>
        <td style="width: 30%;"><b>Titel:</b><br><i>(degree)</i><td>
        <td style="width: 70%;">{degree}<td>
    </tr>
    <tr>
        <td style="width: 30%;"><b>Vorname:</b><br><i>(forename)</i><td>
        <td style="width: 70%;">{forename}<td>
    </tr>
</table>


But the received mail contains additional stylings and additional tablecells like this output shows:


<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%;mso-cellspacing:1.5pt;mso-yfti-tbllook:1184'>
 <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
  <td width="30%" style='width:30.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b>Anrede:</b><br>
  <i>(title)</i></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'></td>
  <td width="70%" style='width:70.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal>Herr</p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'></td>
 </tr>
 <tr style='mso-yfti-irow:1'>
  <td width="30%" style='width:30.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b>Titel:</b><br>
  <i>(degree)</i></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'></td>
  <td width="70%" style='width:70.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal>Prof. Dr. Dr.</p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'></td>
 </tr>
 <tr style='mso-yfti-irow:2'>
  <td width="30%" style='width:30.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b>Vorname:</b><br>
  <i>(forename)</i></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'></td>
  <td width="70%" style='width:70.0%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal>John</p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'></td>
 </tr>
</table>


So, how to get rid of the additional <td>-Elements? Or is there a way that really just the input from the template-textbox is send (without any further styling or changes) so i can fully customize the template?

Any help is much appreciated.

kind regards
Matthias
GreyHead 13 Apr, 2016
Hi Matthia,

Those extra tags are not created by ChronoForms, it looks as though you may be copying and pasting from Microsoft Word, try pasting into a plain text editor first to remove the extra HTML.

Bob
mfeindt 13 Apr, 2016
omg... i found my error:

        <td style="width: 70%;">{title_text}<td>


i used 2 open <td> tags an not an open and a close one like <td>{title_text}</td>

so, sorry for this wrong Post. :-(

Without code-highlightning in the textbox it is quite difficult to see such errors.
Maybe this would be a good improvement for a new Version of chronoforms to can choose using Editor, plain textbox or HTML-Editor with code-highlightning.
This topic is locked and no more replies can be posted.