From 90de66b7022b65837d458546dc429665aed15937 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 18 Nov 2009 15:40:17 +0000 Subject: [PATCH] Fix: the background color does not appear --- htdocs/lib/CMailFile.class.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/htdocs/lib/CMailFile.class.php b/htdocs/lib/CMailFile.class.php index 2314fabaccf..2a749c8067e 100644 --- a/htdocs/lib/CMailFile.class.php +++ b/htdocs/lib/CMailFile.class.php @@ -62,7 +62,10 @@ class CMailFile //CSS var $css; + //! Defined css style for body background var $styleCSS; + //! Defined bacckground directly in body tag + var $bodyCSS; // Image var $html; @@ -191,7 +194,7 @@ class CMailFile if (!empty($css)) { $this->css = $css; - $this->styleCSS = $this->buildCSS(); + $this->buildCSS(); } $msg = $this->html; @@ -765,7 +768,9 @@ class CMailFile { $out = ""; if (!empty($this->styleCSS)) $out.= $this->styleCSS; - $out.= ""; + $out.= "bodyCSS)) $out.= $this->bodyCSS; + $out.= ">"; $out.= $msg; $out.= ""; } @@ -784,27 +789,25 @@ class CMailFile */ function buildCSS() { - $out = ''; - - if (!empty($this->css)) + if (! empty($this->css)) { - $out.= ''; + $this->styleCSS.= '}'; + $this->styleCSS.= ''; } - - return $out; } /**