Amrinder0001 / bakesale

Automatically exported from code.google.com/p/bakesale
1 stars 0 forks source link

Email notification encoding is corrupted when using translations #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bakesale files use UTF-8 encoding. This includes translation files. But
email notifications have to be sent using ISO-8859-1, so utf8_decode() have
to be applied to the subject and message.

FIX:

In /app/controllers/components/email.php;

Find:

$success = mail($this->to, $this->subject, $this->message(), $headers);

Change to:

$success = mail($this->to, utf8_decode($this->subject),
utf8_decode($this->message()), $headers);

This solved the problem for me.

Original issue reported on code.google.com by jaime.it...@gmail.com on 19 Mar 2008 at 2:57

GoogleCodeExporter commented 9 years ago

Original comment by putkonen...@gmail.com on 24 May 2009 at 11:39