Manual:$wgEnableEmail

This page is a translated version of the page Manual:$wgEnableEmail and the translation is 54% complete.
Outdated translations are marked like this.
メールの設定: $wgEnableEmail
基本的なメール機能を有効にするには true に設定する。
導入されたバージョン:1.4.0
除去されたバージョン:使用中
許容される値:(真偽値)
既定値:true

詳細

基本的なメール機能 (パスワード リマインダーなど) を有効にするには true に設定してください。

メール送信の設定方法の詳細は Manual:$wgSMTP を参照してください。

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

Local mail transfer agent software

MediaWiki のメールは、Windows サーバーですぐに動作することはほとんどなく、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

一部のホスティング プロバイダー (例えば Hostmonster) は、 スパマーが自分のアカウントを使用するのを防ぐために、「From:」と「Return-Path:」が本物であることを確認しているようです。

  • 正しい送信者が何であるかを調べます。以下のコードを含む PHP ページにアクセスし、受信したメールを確認します。
<?php
mail("my.private.address@example.com","My subject","My message body");
?>
  • 前の時点のメールが「exampleAccountName@myHost.example.com」から送信されたと仮定します。

LocalSettings.phpの次の変数を変更します。

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

メールを無効にする

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

$wgEnableEmail = true;

下記のようにし、完了です。

$wgEnableEmail = false;

関連項目