mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +09:00
#19042749 : added additional_params for mail function
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7616 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b6d9861e4f
commit
69e098e621
1 changed files with 7 additions and 1 deletions
|
|
@ -23,10 +23,16 @@
|
||||||
var $header = '';
|
var $header = '';
|
||||||
var $eol = '';
|
var $eol = '';
|
||||||
var $references = '';
|
var $references = '';
|
||||||
|
var $additional_params = null;
|
||||||
|
|
||||||
|
|
||||||
function Mail() { }
|
function Mail() { }
|
||||||
|
|
||||||
|
function setAdditionalParams($additional_params)
|
||||||
|
{
|
||||||
|
$this->additional_params = $additional_params;
|
||||||
|
}
|
||||||
|
|
||||||
function addAttachment($filename, $orgfilename)
|
function addAttachment($filename, $orgfilename)
|
||||||
{
|
{
|
||||||
$this->attachments[$orgfilename] = $filename;
|
$this->attachments[$orgfilename] = $filename;
|
||||||
|
|
@ -221,7 +227,7 @@
|
||||||
$this->references?("References: <".$this->references.">".$this->eol."In-Reply-To: <".$this->references.">".$this->eol):""
|
$this->references?("References: <".$this->references.">".$this->eol."In-Reply-To: <".$this->references.">".$this->eol):""
|
||||||
);
|
);
|
||||||
$headers .= $this->header;
|
$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);
|
return mail($this->getReceiptor(), $this->getTitle(), $this->body, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue