Skip to content
Snippets Groups Projects
Commit 5296398c authored by Regis Houssin's avatar Regis Houssin
Browse files

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

parent 385fca79
Branches
Tags
No related merge requests found
<?php <?php
/* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net> /* 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 * 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 * it under the terms of the GNU General Public License as published by
......
...@@ -223,11 +223,19 @@ class CMailFile ...@@ -223,11 +223,19 @@ class CMailFile
*/ */
function write_body($msgtext, $filename_list) function write_body($msgtext, $filename_list)
{ {
global $conf;
$out=''; $out='';
if (count($filename_list)) if (count($filename_list))
{ {
$out = "--" . $this->mime_boundary . "\n"; $out = "--" . $this->mime_boundary . "\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=\"iso8859-15\"\n\n";
}
// $out = $out . "Content-Type: text/plain; charset=\"us-ascii\"\n\n"; // $out = $out . "Content-Type: text/plain; charset=\"us-ascii\"\n\n";
} }
$out = $out . $msgtext . "\n"; $out = $out . $msgtext . "\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment