Merge branch 'seeddms-4.3.x' into seeddms-5.0.x

This commit is contained in:
Uwe Steinmann 2015-11-25 17:03:04 +01:00
commit 18c397b7c7

View File

@ -158,21 +158,5 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
return true;
} /* }}} */
function sendPassword($sender, $recipient, $subject, $message, $params = array()) { /* {{{ */
$this->toIndividual($sender, $recipient, $subject, $message, $params);
return true;
$headers = array();
$headers[] = "MIME-Version: 1.0";
$headers[] = "Content-type: text/plain; charset=utf-8";
$headers[] = "From: ". $sender;
$headers[] = "Reply-To: ". $sender;
$subject = "=?UTF-8?B?".base64_encode($this->replaceMarker($subject))."?=";
return (mail($recipient->getEmail(), $subject, $this->replaceMarker($message), implode("\r\n", $headers)) ? 0 : -1);
} /* }}} */
}
?>