Add parameter moreinheader

This commit is contained in:
Laurent Destailleur 2016-03-04 13:29:43 +01:00
parent b75f896b45
commit e60088a297

View File

@ -103,8 +103,9 @@ class CMailFile
* @param string $errors_to Email for errors-to * @param string $errors_to Email for errors-to
* @param string $css Css option * @param string $css Css option
* @param string $trackid Tracking string * @param string $trackid Tracking string
* @param string $moreinheader More in header (for phpmail only for the moment)
*/ */
function __construct($subject,$to,$from,$msg,$filename_list=array(),$mimetype_list=array(),$mimefilename_list=array(),$addr_cc="",$addr_bcc="",$deliveryreceipt=0,$msgishtml=0,$errors_to='',$css='',$trackid='') function __construct($subject,$to,$from,$msg,$filename_list=array(),$mimetype_list=array(),$mimefilename_list=array(),$addr_cc="",$addr_bcc="",$deliveryreceipt=0,$msgishtml=0,$errors_to='',$css='',$trackid='',$moreinheader='')
{ {
global $conf; global $conf;
@ -199,6 +200,7 @@ class CMailFile
$this->deliveryreceipt = $deliveryreceipt; $this->deliveryreceipt = $deliveryreceipt;
$this->trackid = $trackid; $this->trackid = $trackid;
$smtp_headers = $this->write_smtpheaders(); $smtp_headers = $this->write_smtpheaders();
if (! empty($moreinheader)) $smtp_headers.=$moreinheader;
// Define mime_headers // Define mime_headers
$mime_headers = $this->write_mimeheaders($filename_list, $mimefilename_list); $mime_headers = $this->write_mimeheaders($filename_list, $mimefilename_list);