Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to handel confirmation email special chars


girolimoni

Recommended Posts

Hello to all.

 

I have this problem, that confirmation email in the subject line special chars are shown wrongly like:

 

In the subject: Numéro de commande:

and in the email text: Numéro de commande

 

has anybody an idea what to do in order to get the special chars correctly in the email subject.

 

 

Greetings

Link to comment
Share on other sites

Hello to all.

 

I have this problem, that confirmation email in the subject line special chars are shown wrongly like:

 

In the subject: Numéro de commande:

and in the email text: Numéro de commande

 

has anybody an idea what to do in order to get the special chars correctly in the email subject.

Greetings

 

in admin/mail.php, on or about line 123, you will see the following code near the end of the line:

htmlspecialchars(stripslashes($HTTP_POST_VARS['subject']));

 

change this to:

stripslashes($HTTP_POST_VARS['subject']);

 

i haven't tested this, but it should remove the translation in your confirmation step. but if you have any other special html characters, like angle brackets, it might mess up the rest of the html in your page. since the email you are sending is correct, and this is only something that the admin will ever see you might consider just living with this. it's not really hurting anything.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...