You are here Home > Know-how > MediaWiki - CMS > Include Files (PHP) > includes/UserMailer.php
MediaWiki - CMS
 

8.4.7 includes/UserMailer.php

15.06.2007
8.4.6 includes/SpecialUpload.php [  up  ] - [ A - Z ] - [ top ] 8.5 Interfaces / API's

X X X X X X X
8.1   Own MediaWiki Extension
8.2   Caching
8.2.1   eAccelerator
8.3   Upload Large Files
8.4   Include Files (PHP)
8.4.1   includes/DefaultSettings.php
8.4.2   includes/EditPage.php
8.4.3   includes/MimeMagic.php
8.4.4   includes/SpecialFoo.php
8.4.5   includes/SpecialPreferences.php
8.4.6   includes/SpecialUpload.php
8.4.7   includes/UserMailer.php
8.5   Interfaces / API's
8.5.1   Perl Interface
8.5.1.1   WWW::Mediawiki::Client
8.5.1.2   CMS::MediaWiki (Perl Module)
8.5.2   XML Stuff
8.5.3   PHP related
8.6   KnowledgeTree (DMS)
8.7   Security
8.8   Single Sign On
8.9   MySQL Database

How to prevent uncontrolled e-mail confirmations?

MediaWiki 1.7.1
patch User.php User_1_7_1_patch.txt

files/user 1 7 1 patch.txt
[root@quartus includes]# diff User.php bak/User_orig.php
1799,1805d1798
<               # XX:
<               if ($subject == wfMsg('confirmemail_subject')) {
<                       $origin_email = $this->getEmail();
<                       $body = "\n** WikiSysop: Check for permission to $origin_email ! **\n\n\n$body";
<                       $to = new MailAddress( $from );
<               }
<               # /XX


MediaWiki 1.5.1

# diff UserMailer.php bak/UserMailer_bak1.php
97,100c97
<               # X Orig: mail( $to, $subject, $body, $headers );
<               # X Send to the "To recipient" first:
<               mail( $from, $subject, "$body\n\n--\nTo: $to", $headers );
<               mail( $to, $subject, "Your account will be verified and confirmed as soon as possible.\nThank you.", $headers );
---
>               mail( $to, $subject, $body, $headers );



See also:
Post installation files


8.4.6 includes/SpecialUpload.php       A - Z Index       Top       Disclaimer       8.5 Interfaces / API's


$Id: includes-UserMailer.html,v 1.99 2007/06/15 11:49:14 webcms Exp $
copyright © 2005-2007 by reto