Handbuch:$wgEnableEmail

This page is a translated version of the page Manual:$wgEnableEmail and the translation is 46% complete.
E-Mail-Einstellungen: $wgEnableEmail
Auf true setzen, um einfache E-Mail-Funktionen zu aktivieren.
Eingeführt in Version:1.4.0
Entfernt in Version:Weiterhin vorhanden
Erlaubte Werte:(Wahrheitswert)
Standardwert:true

Details

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

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

If sending email on the server doesn't work, check the Troubleshooting instructions.

Local mail transfer agent software

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.

To send mail from your local server, a functional configuration of a message transfer agent (MTA) is required. Common local mail transfer agent software for sending messages on Linux systems are Postfix, Sendmail, or Exim.

Once a local mail transfer agent is installed, you must set the sendmail_path variable in the file php.ini to point to the correct executable file of your mail server software. Siehe die PHP-Dokumentation.

External email providers

Alternatively you can use $wgSMTP to connect MediaWiki to an external email provider to send mail (for example Google Gmail).

Hosting-Provider

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

  • Find out what the correct sender is, e.g. by visiting a PHP page containing the following code and checking the email that you receive:
<?php
mail("my.private.address@example.com","My subject","My message body");
?>
  • Let's assume the email at the previous point came through from "exampleAccountName@myHost.example.com".

Ändere die folgenden Variablen in LocalSettings.php:

$wgEmergencyContact = "exampleAccountName@myHost.example.com";
$wgPasswordSender   = "exampleAccountName@myHost.example.com";

E-Mail deaktivieren

Um E-Mail zu deaktivieren, ändere den Standardwert in LocalSettings.php:

$wgEnableEmail = true;

zu

$wgEnableEmail = false;

Siehe auch