From fbef6e434f42441327d0c6617431437587cfb3bb Mon Sep 17 00:00:00 2001 From: ywarnier Date: Sun, 26 Aug 2007 16:40:54 +0000 Subject: [PATCH] Improve e-mail plain text encoding (was not setting any charset which lead to some accentuated characters to disappear on UTF-8-default e-mail clients) --- htdocs/lib/CMailFile.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/lib/CMailFile.class.php b/htdocs/lib/CMailFile.class.php index fcef4fdff4a..f04ff31cabb 100644 --- a/htdocs/lib/CMailFile.class.php +++ b/htdocs/lib/CMailFile.class.php @@ -351,6 +351,10 @@ class CMailFile { $out.= "Content-Type: text/html; charset=".$conf->charset_output.$this->eol; } + else + { + $out.= "Content-Type: text/plain; charset=".$conf->charset_output.$this->eol; + } $out.= $this->eol; } if ($this->msgishtml)