Manual:$wgPasswordSender/zh

详情
密码提醒电子邮件地址. 当用户请求密码时，用作的发件人的地址. 也用作其他电子邮件通知的发件人地址.

安装程序会自动为此设置生成一个值，并将其放在 LocalSettings.php 的顶部. 生成的值通常是无意义的（“apache@localhost”之类），因此如果 $wgPasswordSender 和 不正确，请务必更改它们. 如果发件人地址不存在或与 中配置的用户名不匹配，某些 SMTP 服务器可能会拒绝将邮件发送给收件人.

格式


1.23 版本之后
In MediaWiki 1.23, has been removed (see there for more information). $wgPasswordSender however can and should still be used. After setting the email address in LocalSettings.php, you can optionally edit the wiki page MediaWiki:Emailsender to specify a "friendly name" for the password sender.

示例：

1.17 - 1.22
As of 1.17, the From: field in the email is constructed from this setting and. Therefore this setting should contain just the email address (as per the first example, above). If it is in any other format then it will mangle the From: field. Here is an example of specifying a friendly name for the password sender:



1.17 版本之前
Prior to 1.17 this setting was used as the literal string to use for the From: field, therefore anything that is valid in that field is allowed here. The above example could be achieved by using a special syntax, as shown below.

The most common use-cases were:


 * Email address: "admin@example.com"
 * Email address with alternative display name: "Wiki Administrator "



在 DefaultSettings.php 中的用法
请注意，从 v1.5.0 开始，DefaultSettings.php 中的默认值最初设置为与 1.4.x 中使用的值相同（'Wikipedia' 在 v1.6.0 中更改为 'MediaWiki'），但不久后在 DefaultSettings.php 它被设置为 的值，因此这个初始值永远不会出现（因此是上面的当前默认值）. 此信息在很大程度上是无关紧要的，但包含在此处是因为如果您正在浏览 DefaultSettings.php 以检查默认值，它可能会造成混淆.