Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nasty UTF-8 problem for extra order email


Juto

Recommended Posts

Hopefylly somebody knows how to fix this.

 

I have converted my site rc2a to utf-8, and upgraded to v2.3.1

 

All is working very nicely apart from this:

 

In checkout_process the SEND_EXTRA_ORDER_EMAILS_TO do not work okay:

 

 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

 

Note that tep_mail is used to send order confirmation to the customer as well as sending the extra order email.

 

The customers email is all ok. BUT: The to: field for SEND_EXTRA_ORDER_EMAILS_TO is not!!!

 

The to: field contains: =?utf-8?B??= Instead of the recipent!!

 

In the class for the email I have:

 

     $subject = '=?utf-8?B?' . base64_encode($subject) . '?=';
     $to_name = '=?utf-8?B?' . base64_encode($to_name) . '?=';
     $from_name = '=?utf-8?B?' . base64_encode($from_name) . '?=';

 

I have searched and tried a lot to fix this, but no, nothing worked.

 

Please someone, at least point me in the right direction, how do I fix this?

 

Sara

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...