Manual:$wgEnableEmail

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎русский • ‎فارسی • ‎中文 • ‎日本語
Email settings: $wgEnableEmail
Set to true to enable basic email features.
Introduced in version:1.4.0
Removed in version:still in use
Allowed values:(boolean)
Default value:true
Other settings: Alphabetical | By function

Details[edit]

Set to true to enable the basic email features: Password reminders, etc.

Please note that some hosting providers (for example Hostmonster) seem to check that the "From:" and "Return-Path:" are genuine, to prevent spammers from using their accounts.

So if you want to enable this feature, you will need to:

  • Find out what the correct sender is, e.g. by visiting a PHP page containing the following code and checking the message you receive
<?php
mail("my.private.address@gmail.com","My subject","My message body");
?>
  • Let's assume the email at the previous point came through from "myHostmonsterAccountName@myHost.hostmonster.com". You'll need to change the following variables in LocalSettings.php:
$wgEmergencyContact = "myHostmonsterAccountName@myHost.hostmonster.com";
$wgPasswordSender   = "myHostmonsterAccountName@myHost.hostmonster.com";

If sending email on your server doesn't work, you might want to try this work-around, or just disable this feature, i.e. set $wgEnableEmail to false.

MediaWiki email is almost certainly not going to work out-of-the-box on Windows servers, and it may require additional configuration on Linux servers.

See Manual:$wgSMTP for information on how to configure the sending of email.

Disable email[edit]

To disable email, in localsettings.php, change the default:

$wgEnableEmail = true;

to

$wgEnableEmail = false;

See also[edit]