On Thu, Oct 18, 2012 at 2:52 PM, Mills, Douglas <[email protected]> wrote: > To whom it may concern, > > I was in the IRC channel and sumanah had recommended that I inquire about my > issue via the mailing list, so here goes. I am trying to set up SMTP use for > my MediaWiki Server. I am running Windows Server 2008. I have installed all > of the Pear Mail modules to get this running, however when I enter the > variables for $wgSMTP I am getting several lines of errors. > > SMTP is running on my local machine and does not require any form of > authentication: > $wgEmailEmail = true; > $wgEnableUserEmail = true; > > $wgSMTP = array( > 'host' => "localhost", //could also be an IP address > 'IDHost' => "wiki.notify.net", > 'port' => 25, > 'auth' => false > ); > > However, when I create a new account, attempt to send the e-mail for a > password reset, I am getting the following errors: > > > Strict Standards: Non-static method Mail::factory() should not be called > statically in C:\xampp\htdocs\wiki\includes\UserMailer.php on line 245 > > Strict Standards: Non-static method PEAR::isError() should not be called > statically in C:\xampp\htdocs\wiki\includes\UserMailer.php on line 246
The PEAR Mailer docs are horrible, and don't match what the code actually does. Mail::factory() isn't actually static, even though it's supposed to be (and the docs tell you to do it that way). We should probably fix this, somehow. -Chad _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
