mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
Merge branch 'seeddms-4.3.x' into seeddms-5.0.x
This commit is contained in:
commit
18c397b7c7
|
@ -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);
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user