Fix: use same separator than smtps method

This commit is contained in:
Laurent Destailleur 2012-02-03 23:40:59 +01:00
parent 40276d42ff
commit 71be445607

View File

@ -107,7 +107,7 @@ class CMailFile
$this->eol="\r\n";
// On defini mixed_boundary
$this->mixed_boundary = 'mul_'.dol_hash(uniqid("dolibarr1"));
$this->mixed_boundary = "multipart_x." . time() . ".x_boundary";
// On defini related_boundary
$this->related_boundary = 'mul_'.dol_hash(uniqid("dolibarr2"));
@ -589,8 +589,9 @@ class CMailFile
$host = dol_getprefix();
// Sender
//$out .= "Sender: ".getValidAddress($this->addr_from,2).$this->eol;
//$out .= "Sender: ".getValidAddress($this->addr_from,2m)).$this->eol;
$out .= "From: ".$this->getValidAddress($this->addr_from,3,1).$this->eol;
//$out .= "From: ".$this->getValidAddress($this->addr_from,2,0).$this->eol;
//$out .= "Return-Path: ".$this->getValidAddress($this->addr_from,0,1).$this->eol;
if (isset($this->reply_to) && $this->reply_to) $out .= "Reply-To: ".$this->getValidAddress($this->reply_to,2).$this->eol;
if (isset($this->errors_to) && $this->errors_to) $out .= "Errors-To: ".$this->getValidAddress($this->errors_to,2).$this->eol;