Browse Source

Added setting to customize system notifications' sender email address

pull/1335/head
Silke Meyer 6 years ago
parent
commit
a485653d6b
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      include/enotify.php

+ 6
- 2
include/enotify.php View File

@ -27,8 +27,12 @@ function notification($params) {
$hostname = $a->get_hostname();
if(strpos($hostname,':'))
$hostname = substr($hostname,0,strpos($hostname,':'));
$sender_email = t('noreply') . '@' . $hostname;
// $sender_email = t('noreply') . '@' . $hostname;
$sender_email = $a->config['sender_email'];
if (empty($sender_email)) {
$sender_email = t('noreply') . '@' . $hostname;
}
$user = q("SELECT `nickname` FROM `user` WHERE `uid` = %d", intval($params['uid']));
if ($user)


Loading…
Cancel
Save