[Mediawiki-l] Email setup

Andrew Lowe andrew.lowe at quantm.net
Mon Jun 5 01:06:17 UTC 2006


> -----Original Message-----
> From: mediawiki-l-bounces at Wikimedia.org 
> [mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Simon Renshaw
> Sent: Friday, 2 June 2006 4:33 AM
> To: MediaWiki announcements and site admin list
> Subject: Re: [Mediawiki-l] Email setup
> 
> I installed PEAR on my server and the Mail package that came with it.
> 
> In the doc on Mediawiki's site it is written as:
> 
> $wgSMTP = array(
>  'host'     => "localhost",
>  'IDHost'   => "domain for MessageID",
>  'port'     => 25,
>  'auth'     => false,
>  'username' => "my_user_name",
>  'password' => "my_password"
> );
> 
> And you wrote it as:
> 
> 	$wgSMTP = array {
> 			"host" => 'myMailServer',
> 			"IDHost" => 'mycompany.com',
> 			"port" => "25",
> 			"auth" => false
> 	};
> 
> Which one is right? Or are both valid?
> 
> This is running on Windows 2003, IIS 6 and PHP 5.0.5.
> 
> I tried and still haven't received an email.
> 
> Thanks!
> Simon
[snip]


Simon,
	I'm not a PHP hacker so I don't know the ins & outs of " Vs '. I
just copied what was in includes/DefaultSettings.php under SMTP Mode
into the LocalSettings.php file, with appropriate formatting and values,
and it worked. Cut & Paste your relevant entries in an email to the list
so we can see what you've tried. I assume you have also set:

$wgEnableEmail = true;
$wgEnableUserEmail = true;

I think you need at least the first if not both.

	As I said, I'm not a PHP hacker, it's just that I've set all of
this up in the last few days so it's fresh in my memory so I could be
wrong about any of this stuff, but for me it's currently working.

	Regards,
		Andrew



More information about the MediaWiki-l mailing list