216 |
*/ |
*/ |
217 |
function write_body($msgtext, $filename_list) |
function write_body($msgtext, $filename_list) |
218 |
{ |
{ |
219 |
|
$out=''; |
220 |
if (count($filename_list)) |
if (count($filename_list)) |
221 |
{ |
{ |
222 |
$out = "--" . $this->mime_boundary . "\n"; |
$out = "--" . $this->mime_boundary . "\n"; |
258 |
$out .= "Return-path: <$this->addr_from_email>\n"; |
$out .= "Return-path: <$this->addr_from_email>\n"; |
259 |
$out .= "From: $this->addr_from_name <".$this->addr_from_email.">\n"; |
$out .= "From: $this->addr_from_name <".$this->addr_from_email.">\n"; |
260 |
|
|
261 |
if ($this->addr_cc) $out .= "Cc: ".$this->addr_cc."\n"; |
if (isset($this->addr_cc) && $this->addr_cc) $out .= "Cc: ".$this->addr_cc."\n"; |
262 |
if ($this->addr_bcc) $out .= "Bcc: ".$this->addr_bcc."\n"; |
if (isset($this->addr_bcc) && $this->addr_bcc) $out .= "Bcc: ".$this->addr_bcc."\n"; |
263 |
if ($this->reply_to) $out .= "Reply-To: ".$this->reply_to."\n"; |
if (isset($this->reply_to) && $this->reply_to) $out .= "Reply-To: ".$this->reply_to."\n"; |
264 |
// if($this->errors_to != "") |
// if($this->errors_to != "") |
265 |
//$out = $out . "Errors-to: ".$this->errors_to."\n"; |
//$out = $out . "Errors-to: ".$this->errors_to."\n"; |
266 |
|
|