Merge pull request #10047 from frederic34/patch-9

doc cmail class
This commit is contained in:
Laurent Destailleur 2018-11-24 11:20:49 +01:00 committed by GitHub
commit 82b4b3ccb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,8 +68,10 @@ class CMailFile
var $smtps; // Contains SMTPs object (if this method is used) var $smtps; // Contains SMTPs object (if this method is used)
var $phpmailer; // Contains PHPMailer object (if this method is used) var $phpmailer; // Contains PHPMailer object (if this method is used)
//CSS /**
var $css; * @var string CSS
*/
public $css;
//! Defined css style for body background //! Defined css style for body background
var $styleCSS; var $styleCSS;
//! Defined background directly in body tag //! Defined background directly in body tag
@ -944,7 +946,7 @@ class CMailFile
/** /**
* Build a css style (mode = all) into this->styleCSS and this->bodyCSS * Build a css style (mode = all) into this->styleCSS and this->bodyCSS
* *
* @return css * @return string
*/ */
function buildCSS() function buildCSS()
{ {
@ -1232,7 +1234,7 @@ class CMailFile
{ {
foreach ($images_list as $img) foreach ($images_list as $img)
{ {
dol_syslog("CMailFile::write_images: i=$i"); dol_syslog("CMailFile::write_images: ".$img["name"]);
$out.= "--" . $this->related_boundary . $this->eol; // always related for an inline image $out.= "--" . $this->related_boundary . $this->eol; // always related for an inline image
$out.= "Content-Type: " . $img["content_type"] . "; name=\"".$img["name"]."\"".$this->eol; $out.= "Content-Type: " . $img["content_type"] . "; name=\"".$img["name"]."\"".$this->eol;