Manual:$wgEnableEmail

This page is a translated version of the page Manual:$wgEnableEmail and the translation is 29% complete.
Outdated translations are marked like this.
Configurações de e-mail: $wgEnableEmail
Defina como true para habilitar recursos básicos de e-mail
Introduzido na versão:1.4.0
Removido na versão:ainda em uso
Valores permitidos:(booleano)
Valor padrão:true

Detalhes

Defina como true para habilitar os recursos básicos de e-mail: lembretes de senha, etc.

Veja $SMTP para obter informações sobre como configurar o envio de e-mail.

Se o envio de e-mail no seu servidor não funcionar, você pode querer desativa-la.

Local mail transfer agent software

O e-mail do MediaWiki quase certamente não funcionará out-of-the-box em servidores Windows, e podem exigir configuração adicional em servidores Linux. 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. See the PHP documentation.

External email providers

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

Hosting providers

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".

Change the following variables in LocalSettings.php:

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

Disable email

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

$wgEnableEmail = true;

to

$wgEnableEmail = false;

Ver também