]> git.mxchange.org Git - friendica.git/commitdiff
Added setting to customize system notifications' sender email address
authorSilke Meyer <silke@silkemeyer.net>
Sat, 31 Jan 2015 07:46:05 +0000 (08:46 +0100)
committerSilke Meyer <silke@silkemeyer.net>
Sat, 31 Jan 2015 07:46:05 +0000 (08:46 +0100)
include/enotify.php

index 99bc0fd324a260ce2238a877bcec64e8eadf5945..2c940f614b33f511fe50a6f7659006dddcc02cef 100644 (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)