Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgEnableEmail and the translation is 33% complete.

Other languages:
English • ‎Nederlands • ‎español • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎فارسی • ‎中文 • ‎日本語 • ‎한국어
Configuration des courriels: $wgEnableEmail
Set to true to enable basic email features.
Introduit dans la version :1.4.0
Retiré dans la version :Encore utilisé
Valeurs autorisées :(booléen)
Valeur par défaut :true


Mis à true pour activer les fonctionnalités de base des courriels: rappels des mots de passe, 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
mail("","My subject","My message body");
  • Let's assume the email at the previous point came through from "". You'll need to change the following variables in LocalSettings.php:
$wgEmergencyContact = "";
$wgPasswordSender   = "";

Si l'envoi de courriels ne fonctionne pas sur votre serveur, vous pourriez vouloir essayer this work-around, ou simplement désactiver cette fonctionnalité, i.e. passer $wgEnableEmail en 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 Manuel:$wgSMTP for information on how to configure the sending of email.

Disable email

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

$wgEnableEmail = true;


$wgEnableEmail = false;

Voir aussi