Notification emails are currently sent from 'user@ip' when they are initiated by a user. However, if they are not initiated by a user, they are sent from the default server name.
Would it be possible to have in the config file a default "From" name & email? Maybe the email of the administrator? On my hosted domain, email seem to come from serveruser@servername.serverhost and it's really ugly.
Logged In: YES
user_id=13755
Originator: NO
Looks fine. The new MailNotify class has a single point of change for this request.
Logged In: YES
user_id=1719919
Originator: YES
Thanks, but I was referring to XmlRpcServer.php (Password request) and WikiUserNew.php (for the account verified email).
I have added the following in config.ini, maybe it is interesting for others as well:
ADMIN_EMAIL = "My Wiki Name email@domain.com"
And then in the above files : "From: ".ADMIN_EMAIL
like this:
mail($email, "[".WIKI_NAME."} Password Request", $body,"From: ".ADMIN_EMAIL);
and
mail($value,"[".WIKI_NAME ."] ".("Email Verification"),
sprintf(("Welcome to %s!\nYour email account is verified and\nwill be used to send page change notifications.\nSee %s"),
WIKI_NAME, WikiURL($GLOBALS['request']->getArg('pagename'),'',true)),"From: ".ADMIN_EMAIL)