Zen Cart Logo
Forums / General Questions / For me HTML doesen't work for all emails (problem with bulgarian lang pack)

For me HTML doesen't work for all emails (problem with bulgarian lang pack)

Views: 4,488

Results 21 to 34 of 34
3 Jun 2011, 8:28 PM
#21
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

For me HTML doesen't work for all emails (problem with bulgarian lang pack)

DrByte don't give up on me please!!!

I have another clue for you... In all messages sent from my store Outlook displays a message "Extra line brakes were removed"

Hope that helsp in the investigation!

3 Jun 2011, 9:14 PM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

For me, it's simple to set up a Zen Cart store to send HTML emails right away:

  1. Install a clean copy of latest version of Zen Cart (v1.3.9h as of today). NO ADDONS, no language packs, no templates, no extras.
  2. Admin->Configuration->Email Options -- set "Use MIME HTML When Sending Emails" to true.
  3. On the storefront, create a new customer account and select "HTML" as the email format preference.
  4. I receive the Welcome Email immediately, in HTML format.
    So, that confirms that HTML emails are fine.

What happens if you do the same? New install, no addons, no templates, just english.

3 Jun 2011, 9:56 PM
#23
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

You suggest doing this for a test? Just to test my hosting company?

3 Jun 2011, 10:32 PM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

Sure, let's test the hosting company.

3 Jun 2011, 10:33 PM
#25
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

DKunev:

  1. Unfortunately SMTP and SMTPAUTH don't worl for me for some reason! Actually none of the othret e-mail transport methods doesn't work! I can only send e-mails via PHP
    It might be wise to figure out why this is.
4 Jun 2011, 11:17 AM
#26
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

OK DrByte we have a big braketrough!!!!

I did the ismpelest thing in the admin side of the store: Just changed the language to English instead of Bulgarian and guess what! HTML works great e-mails send, welcome e-mail preview works and looks great!

So... now we know that this isn't hosting related and is language specific!

So now i guess that i just need to copy some of the english language files and replace my bulgarian ones(and do some translating) and it should work! Wouden't it?

I tried searching for language files that control these functions.. but had no luck...

Can you point me to the files I need?

THANK YOU!

4 Jun 2011, 5:50 PM
#27
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

It may indeed be that your hosting company isn't capable of accepting emails in that language.

Or a bad language pack using a character set that's not supported by your hosting company's servers.

4 Jun 2011, 7:21 PM
#28
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

My hosting company is in Bulgaria and the language i'm using is Bulgarian ... it doesent make sense that to be the problem!

Its a bad language pack ... do you know the files that control e-mails so that i can copy them from the english part?

Thanks!

4 Jun 2011, 9:29 PM
#29
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

More clues:

Difference between the "Send e-mail option"

When Admin language is English:
Attachment #9336

When Admin language is Bulgarian:
Attachment #9337

And I found a significent difference in the view source for "Welcome e-mail preview" pages is in this :

English:

<!-- body_text //-->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td class="pageHeading">Welcome Email - Sample / Preview</td>

        <td class="pageHeading" align="right"><img src="images/pixel_trans.gif" border="0" alt="" width="57" height="57"></td>
      </tr>
      <tr>
        <td class="errorText" colspan="2">Note: This display of this preview is only as good as the browser you're using, and does NOT necessarily reflect the actual appearance on all email clients. <br />Do NOT rely solely upon this preview for appearance.  Instead, test directly with all the email clients you care to support.</td>
      </tr>
    </table></td>
  </tr>
  <tr>

    <td><table border="2" width="625" cellspacing="0" cellpadding="20" align="center">
      <tr><td width="100%"><table border="0" cellpadding="0" width="100%">
        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
        </tr>

        <tr>
          <td class="main">Subject: Welcome to GadgetShop.bg</td>
        </tr>

        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="20"></td>
        </tr>

        <tr>
          <td class="main"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<base href="http://www.gadgetshop.bg/" />

<style type="text/css">
.body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif;}
a:link {color:#0066cc;}
a:hover {background-color:#eeeecc; color:#0066cc;}
a:visited {color:#0066cc;}
.holder { background-color: #f9f9f9; border: 1px #9a9a9a solid; font-size: 9px; text-align: left; width:550px;}
.header {font-size:10px; padding:0px; width:550px;}
.content {font-size:10px; padding:5px; width:550px;}
.content-line {padding:5px;}
.coupon-block { padding: 5px; border: 1px #cccccc solid; background-color: #FFFF99; }
.coupon-code {font-weight:bold;}
.gv-block { padding: 5px; border: 1px #cccccc solid; background-color: #99FF99; }
.gv-code {font-weight:bold;}
.footer { border-top: 1px #9a9a9a solid; font-size: 9px; margin-top: 10px; text-align: center; width: 550px; }
.extra-info { background-color: #cccc99; border: 1px #9a9a9a solid; font-size: 10px; margin-top: 10px; padding: 5px; width: 550px; }
.extra-info-bold {font-weight:bold;}
.disclaimer { background-color: #f9f9f9; border: 1px #cccccc solid; font-size: 10px; margin-top: 10px; padding: 5px; width: 550px; }
.disclaimer1 {color:#666666; padding:5px;}
.disclaimer1 a:link {color:#666666;}
.disclaimer1 a:visited {color:#666666;}
.disclaimer2 { color: #666666; padding: 5px; }
.copyright { border-bottom: 0px #9a9a9a solid; padding: 5px; }

</style>

</head>

<body class="body">
<div class="holder">

  <!-- Header Section -->
  <div class="header">
  <img src="email/header.jpg" alt="logo" />
  </div>


  <!-- Content Section -->
  <div class="content">
    <div class="content-line">Dear Mr. Smith,

</div>
    <div class="content-line">We wish to welcome you to <strong>GadgetShop.bg</strong>.</div>
<!--The following only get populated if they're enabled! -->
<div class="coupon-block">Congratulations! To make your next visit to our online shop a more rewarding experience, listed below are details for a Discount Coupon created just for you!

<strong>20% Отстъпка от първата Ви покупка в GadgetShop.bg</strong><br />To use the Discount Coupon, enter the Redemption Code code during checkout:  <strong></strong><span class="coupon-code">GADGETSHOP</span></div>

<!-- end gv/coupon section -->
    <div class="content-line">You are now registered with our store and have account privileges:  With your account, you can now take part in the <strong>various services</strong> we have to offer you. Some of these many services include:

<ul><li><strong>Order History</strong> - View the details of orders you have completed with us.

<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.

<li><strong>Address Book</strong> - We can deliver your products to an address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.

<li><strong>Products Reviews</strong> - Share your opinions on our products with other customers.


</ul></div>
    <div class="content-line">For help with any of our online services, please email the store-owner: <a href="mailto:[email protected]">[email protected] </a>

<br /><br />
Sincerely,<br />
<br />
Форчън Трейдинг ЕООД<br />
Store Owner<br />
<br />
<a href="http://www.gadgetshop.bg/">http://www.gadgetshop.bg/</a><br />

<br />
</div>
  </div> 
</div>
 
  <!-- Footer Section -->
  <div class="footer">
    <div class="copyright">Copyright (c) 2011 <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a></div>
  </div>

<div class="disclaimer">
  <div class="disclaimer1">This email address was given to us by you or by one of our customers. If you did not signup for an account, or feel that you have received this email in error, please send an email to <a href="mailto:[email protected]">[email protected] </a> </div>
  <div class="disclaimer2">This e-mail is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.</div>
</div>
<table class="extra-info"><tr><td class="extra-info-bold" colspan="2">Office Use Only:</td></tr><tr><td class="extra-info-bold">From:</td><td>GadgetShop.bg</td></tr><tr><td class="extra-info-bold">E-mail:</td><td>[email protected]</td></tr><tr><td class="extra-info-bold">Login Name:</td><td>Fred Smith</td></tr><tr><td class="extra-info-bold">Login e-mail:</td><td>[email protected]</td></tr><tr><td class="extra-info-bold">IP Address:</td><td> - 79.100.113.99</td></tr><tr><td class="extra-info-bold">Host Address:</td><td>79-100-113-99.btc-net.bg</td></tr><tr><td class="extra-info-bold">Date and Time:</td><td>Sat Jun 4 2011 23:33:50 EEST</td></tr></table>

</body>
</html>
</td>
        </tr>

      </table></td></tr>

      <tr><td width="100%"><table border="0" cellpadding="0" width="100%">
        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
        </tr>

        <tr>
          <td class="main">Subject: Welcome to GadgetShop.bg</td>
        </tr>

        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="20"></td>
        </tr>

        <tr>

          <td class="main">Dear Mr. Smith,<br />
<br />
We wish to welcome you to GadgetShop.bg.<br />
Congratulations! To make your next visit to our online shop a more rewarding experience, listed below are details for a Discount Coupon created just for you!<br />
<br />
20% Отстъпка от първата Ви покупка в GadgetShop.bg<br />
<br />
To use the Discount Coupon, enter the Redemption Code code during checkout:   GADGETSHOP<br />
<br />
--------------------<br />

<br />
You are now registered with our store and have account privileges:  With your account, you can now take part in the various services we have to offer you. Some of these many services include:<br />
<br />
Order History - View the details of orders you have completed with us.<br />
<br />
Permanent Cart - Any products added to your online cart remain there until you remove them, or check them out.<br />
<br />
Address Book - We can deliver your products to an address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.<br />
<br />
Products Reviews - Share your opinions on our products with other customers.<br />
<br />
For help with any of our online services, please email the store-owner: [email protected] <br />

<br />
<br />
Sincerely,<br />
<br />
Форчън Трейдинг ЕООД<br />
Store Owner<br />
<br />
http://www.gadgetshop.bg/<br />
<br />
<br />
<br />
This email address was given to us by you or by one of our customers. If you did not signup for an account, or feel that you have received this email in error, please send an email to [email protected] <br />

<br />
</td>
        </tr>

      </table></td></tr>
    </table></td>
  </tr>
</table>
<!-- body_text_eof //-->

Bulgarian:

<!-- body_text //-->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>

        <td class="pageHeading">E-mail за добре дошли (пример/преглед)</td>
        <td class="pageHeading" align="right"><img src="images/pixel_trans.gif" border="0" alt="" width="57" height="57"></td>
      </tr>
      <tr>
        <td class="errorText" colspan="2">Забележка: Не е гарантирано, че писмото ще бъде получено по начина по който го виждате.</td>
      </tr>
    </table></td>
  </tr>

  <tr>
    <td><table border="2" width="625" cellspacing="0" cellpadding="20" align="center">
      <tr><td width="100%"><table border="0" cellpadding="0" width="100%">
        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
        </tr>

        <tr>
          <td class="main">Относно: Добре дошли в GadgetShop.bg</td>

        </tr>

        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="20"></td>
        </tr>

        <tr>
          <td class="main"></td>
        </tr>

      </table></td></tr>

      <tr><td width="100%"><table border="0" cellpadding="0" width="100%">
        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
        </tr>

        <tr>
          <td class="main">Относно: Добре дошли в GadgetShop.bg</td>

        </tr>

        <tr>
          <td><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="20"></td>
        </tr>

        <tr>
          <td class="main">Уважаеми Г-н Smith,<br />
<br />
Добре дошли в нашия Интернет магазин: GadgetShop.bg<br />

В знак на благодарност за Вашата регистрация Ви предлагаме "Купон за отстъпка" създаден специално за Вас!<br />
<br />
20% Отстъпка от първата Ви покупка в GadgetShop.bg<br />
<br />
За да използвате купона, въведете Код за осребряване  GADGETSHOP по време на процеса на плащане!<br />
<br />
--------------------<br />
<br />
С Вашият профил можете да се възползвате от всички екстри които предлага нашия интернет магазин. Някои от тях са:Вечна кошница - Всички продукти добавени във Вашата кошница остават там докато не ги отстраните или не ги платите. Адресна книга - Въведете повече от един адрес за доставка и използвайте различните адреси според случая! История на поръчките - Разглеждате историята на поръчките си при нас.Отзиви за продукти - Споделете Вашето мнение за продукти с други клиенти.Ако се нуждаете от помощ във връзка с предлаганите от нас услуги, моля пишете ни на e-mail: [email protected] <br />
<br />
С уважение,<br />

<br />
Форчън Трейдинг ЕООД<br />
<br />
<br />
http://www.gadgetshop.bg/<br />
<br />
<br />
<br />
Този e-mail адрес ни бе предоставен от Вас или от някой от нашите клиенти. Ако не сте се регистрирали на нашия Интернет магазин или мислите, че сте получили това писмо по погрешка, моля пишете ни на e-mail: [email protected] <br />
<br />
</td>
        </tr>

      </table></td></tr>
    </table></td>
  </tr>
</table>
<!-- body_text_eof //-->

Also if there is an order and i change the orders' status(from pending to delivered for instance) when admin is in English customer gets emails in glorious HTML
When that's done with language for the Admin Bulgarian.. it's messed up!

Please DrByte tell me that these things make sence for you!

4 Jun 2011, 9:52 PM
#30
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

I just tried to switch the eanguage files(renamed Engllish folder to Bulgarian and the other way around) in bot store and admin folders!

The "Welcome email preview" and "Send email" in admin staied the same ... So I gues the problem isn't in the language files!

For some reason when Bulgarian is selected in admin the HTML is just dropped out both as a tool "HTML Area" when using "Send e-mal" and in "Welcome email preview is just not there!!

4 Jun 2011, 10:12 PM
#31
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

I'm starting to think that there's something to do with that HTML Area editor thingy

5 Jun 2011, 4:18 AM
#32
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

You're probably missing email templates for "bg".
Try copying the HTML and JPG files from /email/ into a new folder /email/bg/ (assuming "bg" is the language code)

As for HTMLarea, it probably doesn't have support for bulgarian built-in, which is why it's not showing up when you've selected that language. Try copying the /editors/htmlarea/lang/en.js file to bg.js and see if that causes it to show the editor when bulgarian language is selected.

5 Jun 2011, 7:22 PM
#33
dkunev avatar

dkunev

Zen Follower

Join Date:
May 2011
Posts:
117
Plugin Contributions:
0

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

Everything is working now!!!

Thank you DrByte! You are the best!

5 Jun 2011, 7:27 PM
#34
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: For me HTML doesen't work for all emails (problem with bulgarian lang pack)

Whew! Glad we got that sorted out for you. :laugh: