Hi all,
thanks for your help. The mail server is now running on my local host
and send out emails. The problem was, that the port was blocked by my
AntiVirus program. I opened it and now everything is fine.
Best,
Mei
On 7/5/06, Simon Renshaw <simon(a)castortech.com> wrote:
Hi Mei,
Is this a brand new 1.6.7 installation? They changed things around a bit
between versions.
In my 1.5.X Wiki that I upgraded to 1.6.7 (kept my old settings file),
you should find the following near the top of LocalSettings:
$IP = "C:\\Wiki\\mediawiki";
ini_set( "include_path",
".;$IP;$IP/includes;$IP/languages;C:\PHP\PEAR"
);
require_once( "includes/DefaultSettings.php" );
I added ;C:\PHP\PEAR to that line.
In a brand new 1.6.7 installation you will find the following near the
top:
$path = array( $IP, "$IP/includes", "$IP/languages;C:\PHP\PEAR" );
set_include_path( implode( PATH_SEPARATOR, $path ) );
Once again, I added ;C:\PHP\PEAR to that line.
; is a separator on Windows.
You also need to following in your LocalSettings file:
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "wiki(a)castortech.com".com";
$wgPasswordSender = "wiki(a)castortech.com".com";
$wgSMTP = array(
'host' => "smtp.domain.com",
'IDHost' => "domain.com",
'port' => 25,
'auth' => false,
'username' => "my_user_name",
'password' => "my_password"
);
Note that I am using an external SMTP server to send my emails. If auth
is set to false, you can leave username and password as is.
Also, in PHP.ini I have:
include_path = ".;c:\php;C:\php\PEAR"
Hope that helps.
Simon
-----Original Message-----
From: Mei Wu [mailto:mwu.mailbox@gmail.com]
Sent: 4 juillet, 2006 20:07
To: Simon Renshaw
Subject: Re: [Mediawiki-l] smtp server integration in MediaWiki
Hi Simon,
I have a lot of troublet getting the email notification running. I was
wondering if you could provide me with some details of your
installation. I am running Mediawiki 1.6.7 on a Windows XP machine.
The computer is in a LAN with a static IP behind a proxy. I have
installed PEAR and tyhe mail package on my the computer (F:\pear). In
the php.ini file I uncommented the include_path and added F:\pear. I
did not find any ini_set line in my LocalSetting.php except a
commented line which sets the memory_limit. I tried to add the ini_set
as indicated on the webpage but I'm not sure how to modify it and I
got lots of include errors when I tried to access my Wiki again.
When I try to "Email password" on the Wiki logon page, I get the
following error:
Login error:
Error sending mail: Failed to connect to localhost:25 [SMTP: Failed to
connect socket: An established connection was aborted by the software
in your host machine. (code: -1, response: )]
I don't really know what to do. Do you have an idea? How does your
configuration look like. Thanks a lot for your help.
Mei
On 7/4/06, Simon Renshaw <simon(a)castortech.com> wrote:
Hi Matt,
Since I was also having SMTP problems, I followed your link.
Found out that I had to modify the ini_set line to include the PEAR
directory.
My Wiki can finally send emails!
Thanks a lot for the tip!
Simon
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Matt
Sent: 2 juillet, 2006 22:01
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] smtp server integration in MediaWiki
You haven't given many details here to help out in troubleshooting.
Are there any errors showing in the Apache log? Does the SMTP log
even show a connection attempt when a mail is (supposed to be) sent?
I do have a short write-up available at
http://www.datahead.org/wiki/index.php/Wiki_Setup_Information#Email_Sett
ings
that documents how I was able to get MediaWiki 1.5.x and 1.6.x to send
email on a Windows-based server. Perhaps something there can help
you.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l