From 69e098e621f7d4fd4205d078833fd9d2e8229e60 Mon Sep 17 00:00:00 2001 From: haneul Date: Thu, 29 Jul 2010 05:55:15 +0000 Subject: [PATCH] #19042749 : added additional_params for mail function git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7616 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/mail/Mail.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/classes/mail/Mail.class.php b/classes/mail/Mail.class.php index e0fe0becc..2654f5686 100644 --- a/classes/mail/Mail.class.php +++ b/classes/mail/Mail.class.php @@ -23,10 +23,16 @@ var $header = ''; var $eol = ''; var $references = ''; + var $additional_params = null; function Mail() { } + function setAdditionalParams($additional_params) + { + $this->additional_params = $additional_params; + } + function addAttachment($filename, $orgfilename) { $this->attachments[$orgfilename] = $filename; @@ -221,7 +227,7 @@ $this->references?("References: <".$this->references.">".$this->eol."In-Reply-To: <".$this->references.">".$this->eol):"" ); $headers .= $this->header; - + if($this->additional_params) return mail($this->getReceiptor(), $this->getTitle(), $this->body, $headers, $this->additional_params); return mail($this->getReceiptor(), $this->getTitle(), $this->body, $headers); }