Does anyone know exactly where Mediawiki gets the value for localhost?
Can it be configured in LocalSettings.php?
What would a typical line defining it look like?
Why would Mediawiki be inserting into an e-mail address a value that includes the www. part of $wgservername? Shouldn't it trim that off if it is present?
Sandy
Sandy Rozhon wrote:
Why would Mediawiki be inserting into an e-mail address a value that includes the www. part of $wgservername? Shouldn't it trim that off if it is present?
Sandy
They could, but is not doing it. See some examples from DefaultSettings
/** * Site admin email address * Default to wikiadmin@SERVER_NAME * @global string $wgEmergencyContact */ $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
/** * Password reminder email address * The address we should use as sender when a user is requesting his password * Default to apache@SERVER_NAME * @global string $wgPasswordSender */ $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
You can of course override these email addresses at LocalSettings.php with whatever you want. Also note that as you're using an extension, it can make up emails on any way it prefers.
On 15 Apr 2007 at 18:39, Platonides wrote:
You can of course override these email addresses at LocalSettings.php with whatever you want. Also note that as you're using an extension, it can make up emails on any way it prefers.
Well it appears that NewUserNotif.php uses the mailer provided in Mediawiki (usermailer.php), so it would seem that the WWW should get stripped off there.
Since I'm not sure what specifying an email address might mess up elsewhere in Mediawiki (which happens to be running just fine other than this slight problem with the extension), I think it will be easier to just set up a filter in my desktop email program to trap the error messages and just look at those as my notification. <shrug> Not the most elegant way to handle things, but at least I understand it.
Thanks for your reply, Sandy
Changing a (broken) email into another doesn't break anything. Changing $wgServer could break several things, though. http://www.mediawiki.org/wiki/Extension:New_User_Email_Notification specifies: $wgNewUserNotifSender Email address of the sender of the email Defaults to the value of $wgPasswordSender (which we viewed, had www on it) So you should set $wgNewUserNotifSender as the proper e-mail sender. It's an extension parameter, so it won't break anything on MediaWiki.
Alternatively, you could set $wgPasswordSender before require_once( "{$IP}/extensions/NewUserNotif/NewUserNotif.php" ) and let it set $wgNewUserNotifSender by copying it.
On 15 Apr 2007 at 23:07, Platonides wrote:
So you should set $wgNewUserNotifSender as the proper e-mail sender. It's an extension parameter, so it won't break anything on MediaWiki.
The above fixed the problem! Thanks so much for your help.
Sandy
mediawiki-l@lists.wikimedia.org