mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
set From and Reply-To from email settings in configuration
This commit is contained in:
parent
7d898a7efc
commit
6e6955176a
|
@ -117,9 +117,8 @@ class LetoDMS_Email extends LetoDMS_Notify {
|
||||||
function sendPassword($sender, $recipient, $subject, $message) {
|
function sendPassword($sender, $recipient, $subject, $message) {
|
||||||
global $settings;
|
global $settings;
|
||||||
|
|
||||||
$header = "From: " . "\r\n" .
|
$header = "From: " . $settings->_smtpSendFrom . "\r\n" .
|
||||||
"Reply-To: " . "\r\n";
|
"Reply-To: " . $settings->_smtpSendFrom . "\r\n";
|
||||||
$header = '';
|
|
||||||
|
|
||||||
return (mail($recipient->getEmail(), $this->replaceMarker($subject), $this->replaceMarker($message), $header) ? 0 : -1);
|
return (mail($recipient->getEmail(), $this->replaceMarker($subject), $this->replaceMarker($message), $header) ? 0 : -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user