Add parameter moreinheader
This commit is contained in:
parent
b75f896b45
commit
e60088a297
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user