diff --git a/include/config.inc.example b/include/config.inc.example index f98304544..6bb95ab48 100644 --- a/include/config.inc.example +++ b/include/config.inc.example @@ -33,7 +33,8 @@ define ("DEBUGNOALYSS",0); // Uncomment if you want to activate the possibility to reinitialize // password by email // defined("RECOVER","1"); -// Uncomment and define if you want to Name of the sender of the email + +// // Uncomment and define if you want to Name of the sender of the email // if you activate the possibility to reinitialize password by email // define('ADMIN_WEB', 'www-data@localhost'); diff --git a/include/constant.php b/include/constant.php index 8e284d192..ac04af67c 100644 --- a/include/constant.php +++ b/include/constant.php @@ -65,6 +65,11 @@ if (!defined('NOALYSS_ADMINISTRATOR')) { if (!defined("SESSION_KEY")) { define("SESSION_KEY", "RtYu0uu"); } + +if ( !defined ('ADMIN_WEB')) { + $a=gethostname(); + define('ADMIN_WEB',"noalyss-no-reply@$a"); +} require_once NOALYSS_INCLUDE . '/constant.security.php'; if (strpos($inc_path, ";") != 0) {