diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index 24e397f2eae..8fb68d93b16 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -1,6 +1,6 @@ - * Copyright (C) 2006 Andre Cianfarani + * Copyright (C) 2005-2006 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/lib/CMailFile.class.php b/htdocs/lib/CMailFile.class.php index 6839221f3ba..f25be75f6ea 100644 --- a/htdocs/lib/CMailFile.class.php +++ b/htdocs/lib/CMailFile.class.php @@ -223,11 +223,19 @@ class CMailFile */ function write_body($msgtext, $filename_list) { + global $conf; $out=''; if (count($filename_list)) { $out = "--" . $this->mime_boundary . "\n"; - $out = $out . "Content-Type: text/plain; charset=\"iso8859-15\"\n\n"; + if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_MAILING) + { + $out = $out . "Content-Type: text/html; charset=\"iso8859-15\"\n\n"; + } + else + { + $out = $out . "Content-Type: text/plain; charset=\"iso8859-15\"\n\n"; + } // $out = $out . "Content-Type: text/plain; charset=\"us-ascii\"\n\n"; } $out = $out . $msgtext . "\n";