mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
remove sendPassword() because it is now in SeedDMS_EmailUtils
This commit is contained in:
parent
eda80242ea
commit
f021f1e2fd
|
@ -82,18 +82,5 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
|
|||
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
function sendPassword($sender, $recipient, $subject, $message) { /* {{{ */
|
||||
global $settings;
|
||||
|
||||
$headers = array();
|
||||
$headers[] = "MIME-Version: 1.0";
|
||||
$headers[] = "Content-type: text/plain; charset=utf-8";
|
||||
$headers[] = "From: ". $settings->_smtpSendFrom;
|
||||
$headers[] = "Reply-To: ". $settings->_smtpSendFrom;
|
||||
|
||||
$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