Emails not formatted correctly

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeEmails not formatted correctly

This topic has been marked as not a support question.

Hello

The email displays the html and css code instead of displaying properly. How do you fix this? I’ve deleted some of the text in between as it was too much.


Content-Type: multipart/related; boundary="----=_NextPart_00becf6dda1afda854eb1152cdce00c1"

------=_NextPart_00becf6dda1afda854eb1152cdce00c1
Content-Type: multipart/alternative; boundary="----=_NextPart_00becf6dda1afda854eb1152cdce00c1_alt"

------=_NextPart_00becf6dda1afda854eb1152cdce00c1_alt
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

------=_NextPart_00becf6dda1afda854eb1152cdce00c1_alt
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body {
       color: #000000;
       font-family: Arial, Helvetica, sans-serif;
}
body, td, th, input, textarea, select, a {
       font-size: 12px;
}
p {
       margin-top: 0px;
       margin-bottom: 20px;
}
a, a:visited, a b {
       color: #378DC1;
       text-decoration: underline;
       cursor: pointer;
}
a:hover {
       text-decoration: none;
}
a img {
       border: none;
}
#container {
       width: 680px;
}
#logo {
       margin-bottom: 20px;
}
table.list {
       border-collapse: collapse;
       width: 100%;
       border-top: 1px solid #DDDDDD;
       border-left: 1px solid #DDDDDD;
       margin-bottom: 20px;
}
table.list td {
       border-right: 1px solid #DDDDDD;
       border-bottom: 1px solid #DDDDDD;
}
table.list thead td {
       background-color: #EFEFEF;
       padding: 0px 5px;
}
table.list thead td a, .list thead td {
       text-decoration: none;
       color: #222222;
       font-weight: bold;
}
table.list tbody td a {
       text-decoration: underline;
}
table.list tbody td {
       vertical-align: top;
       padding: 0px 5px;
}
table.list .left {
       text-align: left;
       padding: 7px;
}
table.list .right {
       text-align: right;
       padding: 7px;
}
table.list .center {
       text-align: center;
       padding: 7px;
}
</style>
</head>
<body>

   <thead>
     <tr>
       <td class="left">Product</td>
       <td class="left">Model</td>
       <td class="right">Quantity</td>
       <td class="right">Price</td>
       <td class="right">Total</td>
     </tr>
   </thead>
   <tbody>
           <tr>
   
 </table>
 <p>Please reply to this email if you have any questions.</p>
 <p>Powered By <a href="http://www.opencart.com">OpenCart</a>.</p>
</div>
</body>
</html>

------=_NextPart_00becf6dda1afda854eb1152cdce00c1_alt--
------=_NextPart_00becf6dda1afda854eb1152cdce00c1

iVBORw0KGgoAAAANSUhEUgAAAOgAAABlCAIAAADI5TgpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdp
bj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6
eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEz
NDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJo
dHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlw
dG
------=_NextPart_00becf6dda1afda854eb1152cdce00c1--

I’m currently using Shoppica 1.0.9 on Opencart 1.5.1.2.

April 26, 2012 at 4:15 am #8330

Hi,

Did you have this problem, before you’ve modified the template?

Generally, Shoppica uses the templates from the default theme and shouldn’t cause any problem.
It could be also some server setting…

April 27, 2012 at 9:35 am #8388

Hello,

I’m not sure if this was a problem before modified the template. But it happened to a customer using gmail. And I get emails in Thunderbird with the html codes too. But, I thought it was just backend that had this problem. The host server settings?

April 27, 2012 at 6:24 pm #8401

Yes, it could be a host server setting if you use dedicated server. If you are on shared host, I do not believe to be a hosting problem, because it would affect hundreds.
You could try a new opencart installation on your hosing (in a subdirectory of your domain for example) to test if the emails from there are sent correctly. If they are, then you are probably messed up the template (encoding, broken tags etc..) and you should restore the default one.

That’s all we can say about your issue as its clearly not connected to Shoppica.

Best regards,
ThemeBurn team

April 30, 2012 at 11:36 am #8453

Where is the location of the default one?

May 1, 2012 at 1:06 am #8483

I will check with my host because it happens in thank you for registering and order form…if the mail files are in the system folder, I didn’t edit those files. Thanks!

May 1, 2012 at 8:43 pm #8501

Hi,

There are templates only for order and gift voucher mails. They are located here:

catalog/view/theme/default/template/mail

All other emails are generated from controller files.

As we’ve suggested above, the best way to check if this is a server matter or a problem caused by you, is to make a fresh new installation on the same server and test with it.

Best,
ThemeBurn team

May 2, 2012 at 10:50 am #8514
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.