Manual:$wgEnableEmail
Jump to navigation
Jump to search
Outdated translations are marked like this.
メールの設定: $wgEnableEmail | |
---|---|
基本的なメール機能を有効にするには true に設定する。 |
|
導入されたバージョン: | 1.4.0 |
除去されたバージョン: | 使用中 |
許容される値: | (真偽値) |
既定値: | true |
その他の設定: アルファベット順 | 機能順 |
詳細
基本的なメール機能 (パスワード リマインダーなど) を有効にするには true に設定してください。
Some hosting providers (for example Hostmonster) appear to check that the "From:" and "Return-Path:" are genuine, to prevent spammers from using their accounts.
To enable this email:
- 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@example.com","My subject","My message body");
?>
- Let's assume the email at the previous point came through from "myHostmonsterAccountName@myHost.example.com".
Change the following variables in LocalSettings.php
:
$wgEmergencyContact = "exampleAccountName@myHost.example.com";
$wgPasswordSender = "exampleAccountName@myHost.example.com";
サーバーでメール送信機能が動作しない場合は、これを無効にすることもできます。
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.
メール送信の設定方法の詳細は Manual:$wgSMTP
を参照してください。
Disable email
To disable email, in localsettings.php, change the default:
- $wgEnableEmail = true;
to
- $wgEnableEmail = false;