Manual:$wgEmergencyContact

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil
Email settings: $wgEmergencyContact
Site admin email address
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: email address
Default value: false (MediaWiki 1.22+)
'wikiadmin@' . substr( $wgServer, strrpos( $wgServer, '/' ) + 1 ) (prior to 1.22)
Other settings: Alphabetical | By function

Details[edit]

This allows the site administrator to specify an email address that the wiki can contact if something goes wrong. Current versions of MediaWiki (1.13 and above) do not use this setting, having delegated its uses to $wgPasswordSenderManual:$wgPasswordSender, but future versions or extensions might.

The installer automatically generates a value for this setting, and places it towards the top of LocalSettings.phpManual:LocalSettings.php. The generated value will often be nonsensical ("apache@localhost" or similar), so be sure to change $wgEmergencyContact and $wgPasswordSenderManual:$wgPasswordSender if they are incorrect like this.

Pre-1.13[edit]

MediaWiki version: 1.13

This setting was very important before r38375. It was used for:

  • Certain error messages displayed to users
  • The return address for password reminders
  • The default sender address of email notifications to wiki members, such as page change notifications and watchlist notifications