]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Fixed missing sudo, improved local mail in vagrant.
[friendica.git] / include / enotify.php
index 99bc0fd324a260ce2238a877bcec64e8eadf5945..4327e75b837d5c25fb36fbad03c7f123e861b5eb 100644 (file)
@@ -23,12 +23,15 @@ function notification($params) {
        $site_admin = sprintf( t('%s Administrator'), $sitename);
        $nickname = "";
 
-       $sender_name = $product;
+       $sender_name = $sitename;
        $hostname = $a->get_hostname();
        if(strpos($hostname,':'))
                $hostname = substr($hostname,0,strpos($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)