Modif: le corp du message sera en html si on utilise FCKeditor pour le mailing

This commit is contained in:
Regis Houssin 2006-07-22 13:22:51 +00:00
parent 385fca7903
commit 5296398cb5
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
*
* 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

View File

@ -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";