mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +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) {
|
||||
global $settings;
|
||||
|
||||
$header = "From: " . "\r\n" .
|
||||
"Reply-To: " . "\r\n";
|
||||
$header = '';
|
||||
$header = "From: " . $settings->_smtpSendFrom . "\r\n" .
|
||||
"Reply-To: " . $settings->_smtpSendFrom . "\r\n";
|
||||
|
||||
return (mail($recipient->getEmail(), $this->replaceMarker($subject), $this->replaceMarker($message), $header) ? 0 : -1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user