Project

General

Profile

Bug #14377 ยป 0000464-class.t3lib_htmlmail.php.diff

Administrator Admin, 2004-11-06 12:28

View differences:

t3lib/class.t3lib_htmlmail.php 2004-11-06 11:39:46.000000000 +0100
// Requires the recipient, message and headers to be set.
#debug(array($this->recipient,$this->subject,$this->message,$this->headers));
if (trim($this->recipient) && trim($this->message)) { // && trim($this->headers)
$returnPath = (strlen($this->returnPath)>0)?"-f".$this->returnPath:'';
//On windows the -f flag is not used (specific for sendmail and postfix), but instead the php.ini parameter sendmail_from is used.
if($this->returnPath) {
ini_set(sendmail_from, $this->returnPath);
}
//If safe mode is on, the fifth parameter to mail is not allowed, so the fix wont work on unix with safe_mode=On
if(!ini_get('safe_mode')) {
mail( $this->recipient,
mail( $this->recipient,
$this->subject,
$this->message,
$this->headers,
$returnPath);
}
else {
mail( $this->recipient,
$this->subject,
$this->message,
$this->headers);
}
$this->headers );
// Sending copy:
if ($this->recipient_copy) {
if(!ini_get('safe_mode')) {
mail( $this->recipient_copy,
$this->subject,
$this->message,
$this->headers,
$returnPath);
}
else {
mail( $this->recipient_copy,
$this->subject,
$this->message,
$this->headers );
}
}
// Auto response
if ($this->auto_respond_msg) {
......
mail( $this->from_email,
$theParts[0],
$theParts[1],
"From: ".$this->recipient,
$returnPath);
}
if($this->returnPath) {
ini_restore(sendmail_from);
"From: ".$this->recipient);
}
return true;
} else {return false;}
} else { return false; }
}
/**
    (1-1/1)