Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Send e-mail using UTF-8 Encoding


Z3RatuL

Recommended Posts

My host recently upgraded mysql so I was forced to encode my entire site from ISO-8859-7 (Greek) to UTF-8. Everything worked as described in various forum posts I've read. One thing I'm missing and is bugging me is how to make contact us page to send readable mails. If anyone tries to contact me using the standard contact_us.php page, the mail I receive is like that:

 

From: Πάνος ΑποστολΟπουλος [mailto:[email protected]]
Sent: Tuesday, May 13, 2008 3:21 PM
To: My Store Ξατάστημα
Subject: Ξ•ΟΟτημα Ξ±Ο€Ο My Store

X-Mailer: osCommerce Mailer
Content-Type: multipart/alternative;
boundary="=_f43115580cf54299118a4fba9eb47e97"


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

ΣπΟΟΞΏ ΞΏ Πάνος ΞµΞ―ΞΌΞ±ΞΉ κάνω Ξ­Ξ½Ξ± τεστ Ξ½Ξ± δοΟΞΌΞµ πως λαμβάνεις τα e-mail!
--=_f43115580cf54299118a4fba9eb47e97
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

=CE=A3=CF=80=CF=8D=CF=81=CE=BF =CE=BF =CE=A0=CE=AC=CE=BD=CE=BF=CF=82 =CE=B5=
=CE=AF=CE=BC=CE=B1=CE=B9 =CE=BA=CE=AC=CE=BD=CF=89 =CE=AD=CE=BD=CE=B1 =CF=84=
=CE=B5=CF=83=CF=84 =CE=BD=CE=B1 =CE=B4=CE=BF=CF=8D=CE=BC=CE=B5 =CF=80=CF=89=
=CF=82 =CE=BB=CE=B1=CE=BC=CE=B2=CE=AC=CE=BD=CE=B5=CE=B9=CF=82 =CF=84=CE=B1 =
e-mail!

 

I believe it has to do with the tep_mail function but I don't know how to fix this...

 

Any help will be appreciated!

There's a diference between living & BEING ALIVE!

Link to comment
Share on other sites

  • 2 weeks later...
My host recently upgraded mysql so I was forced to encode my entire site from ISO-8859-7 (Greek) to UTF-8. Everything worked as described in various forum posts I've read. One thing I'm missing and is bugging me is how to make contact us page to send readable mails. If anyone tries to contact me using the standard contact_us.php page, the mail I receive is like that:

 

From: Πάνος ΑποστολΟπουλος [mailto:[email protected]]
Sent: Tuesday, May 13, 2008 3:21 PM
To: My Store Ξατάστημα
Subject: Ξ•ΟΟτημα Ξ±Ο€Ο My Store

X-Mailer: osCommerce Mailer
Content-Type: multipart/alternative;
boundary="=_f43115580cf54299118a4fba9eb47e97"

 

I believe it has to do with the tep_mail function but I don't know how to fix this...

 

Any help will be appreciated!

 

first, you need to figure out why there is a blank line after your subject. once your email server sees a blank line it believes it is done with the mime headers. so it doesn't realize that it's a multipart email and won't interpret the content-type with the boundary= setting and the charset=utf-8 specification

 

are you somehow including a newline (\n) in your subject string?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...