Roundcube Community Forum

 

HTML limitations

Started by Locobato, September 04, 2012, 08:23:16 PM

Previous topic - Next topic

Locobato

My client is using Hostgator for webhosting and Roundcube for webmail. They would like to send out HTML emails to their customers. I have turned on the HTML editor feature for their email accounts and am testing it for them. I'm having an issue with the HTML code I am inputting is being truncated by RC.

I compose a new message and select the HTML icon in the menu bar to open the HTML Source Editor. Here I paste my html code click on update and the visual results appear in the email body except items like background images. For Example the following code is what I submit:


<html>
<head>
  <meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
  <title>Email Template</title>
</head>
<body
style="background-image: url(http://www.classybabyinc.com/FinalBack.png);">
<table style="text-align: left; width: 909px; height: 658px;"
border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td colspan="1" rowspan="1" style="width: 115px;"
background="http://www.classybabyinc.com/FinalBack.png"></td>
      <td colspan="1" rowspan="1"
style="background-color: rgb(214, 190, 144); width: 400px; vertical-align: top; text-align: center;"><img
style="width: 200px; height: 171px;"
alt="Classy Baby Inc. Redefine the Concept of Adorable."
src="http://www.classybabyinc.com/Logo.png"><br>
This Months Special Offers!</td>
      <td colspan="1" rowspan="1" style="width: 94px;"></td>
    </tr>
    <tr>
    </tr>
    <tr>
    </tr>
    <tr>
    </tr>
  </tbody>
</table>
</body>
</html>

And RC turns that code into this:
<p>Email Template</p>
<table style="text-align: left; width: 909px; height: 658px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 115px;" rowspan="1" colspan="1">&nbsp;</td>
<td style="background-color: #d6be90; width: 400px; vertical-align: top; text-align: center;" rowspan="1" colspan="1"><img style="width: 200px; height: 171px;" src="http://www.classybabyinc.com/Logo.png" alt="Classy Baby Inc. Redefine the Concept of Adorable." /><br /> This Months Special Offers!</td>
<td style="width: 94px;" rowspan="1" colspan="1">&nbsp;</td>
</tr>
</tbody>
</table>

Can anybody explain to me why this is being truncated? Is there a workaround that anyone can suggest? Bear in mind I do not have access to RC as an admin as we are simply using the service through Hostgator. Any feedback would be greatly appreciated.

alec

This is how TinyMCE editor works by default. There's a plugin fullbody for it, but last time I tried it it was buggy. To make it work I suppose also some changes in Roundcube code would be needed.