Zen Cart Logo
Forums / Addon Language Packs / Product Review Pending Approval: Email Titled Unreadable...

Product Review Pending Approval: Email Titled Unreadable...

Locked

Views: 2,821

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
24 Aug 2006, 1:53 PM
#1
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Product Review Pending Approval: Email Titled Unreadable...

I have just been testing out the Product Review function on my two language store.

The English side works fine, sending out an email that the title is readable, like this: Product Review Pending Approval:War and Peace

But when sending a review for approval from the Japanese side, I get this:
vrXHp8LUpMGkzqXspdOl5aG8OiClxqXtpeqluaXIpM/Dr6GppaylpKXJpdalw6WvIC

...nothing at all is readable in the title. The body of the email can be read, just the title is a complete mess... As it is both the set text (Product Review Pending) AND the product name that are garbled, I imagine the file that creates/combines them might be the culprit... I am not sure where to start troubleshooting this...

Does any one have any ideas on what I might try to do?

24 Aug 2006, 2:39 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Product Review Pending Approval: Email Titled Unreadable...

does this line exist anywhere in your /includes/functions/functions_email.php?

      $mail->CharSet =  (defined('CHARSET')) ? CHARSET : "iso-8859-1";
24 Aug 2006, 3:52 PM
#3
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Product Review Pending Approval: Email Titled Unreadable...

Hello again, Good Dr!

I tell ya, I seem to get all these rather weird niggling tiny monsters...

Yes, I found just a singe occurrence in the section below. I wonder what that then leads us to...

As always, MANY thanks!

  // now lets build the mail object with the phpmailer class
  $mail = & new PHPMailer();
  $lang_code = ($_SESSION['languages_code'] == '' ? 'en' : $_SESSION['languages_code'] );
  $mail->SetLanguage($lang_code,DIR_WS_CLASSES . 'support/');
  $mail->CharSet =  (defined('CHARSET')) ? CHARSET : "iso-8859-1";
  if ($debug_mode=='on') $mail->SMTPDebug = true;
  if (EMAIL_TRANSPORT=='smtp' || EMAIL_TRANSPORT=='smtpauth') {
    $mail->IsSMTP();                           // set mailer to use SMTP
    $mail->Host = EMAIL_SMTPAUTH_MAIL_SERVER;  // specify main (could also do backup server... future feature?)
    if (EMAIL_TRANSPORT=='smtpauth') {
      $mail->SMTPAuth = true;     // turn on SMTP authentication
      $mail->Username = (zen_not_null(EMAIL_SMTPAUTH_MAILBOX)) ? EMAIL_SMTPAUTH_MAILBOX : EMAIL_FROM;  // SMTP username
      $mail->Password = EMAIL_SMTPAUTH_PASSWORD; // SMTP
24 Aug 2006, 4:01 PM
#4
peace_freak avatar

peace_freak

Zen Follower

Join Date:
Apr 2006
Posts:
354
Plugin Contributions:
0

Re: Product Review Pending Approval: Email Titled Unreadable...

I just did a test with the Tell a Friend function and got the same result... Two emails were sent out, one to Yahoo mail (web based) and my regular account. The web based mail title was readable...

So these two current troubles seems to be some how similar to the other problem I was having http://www.zen-cart.com/forum/showthread.php?t=43928&page=2 that I resolved after installing the Japanese Admin and reentering the Japanese names for all the products...

But the fact that the set text AND the product title are garbled adds a new twist...