Hi, I have set up an instance of MediaWiki on our internal corporate network. To get email reminders happening, I need to configure MediaWiki to point to our corporate mail server. Can anyone tell me where that pointer - the name of the server, e.g. mail.company.com - is set? I have looked in DefaultSettings.php (in the 'Includes' folder) and LocalSettings.php, but can't work it out.
Running MS Server 2003, current version (as of about a month ago) of PHP, which i think is 5.2.
Thanks, AW
Webb, Alister wrote :
I need to configure MediaWiki to point to our corporate mail server. Can anyone tell me where that pointer - the name of the server, e.g. mail.company.com - is set? I have looked in DefaultSettings.php (in the 'Includes' folder) and LocalSettings.php, but can't work it out.
I think this has to be done somewhere in php.ini (some smtp parameters)...
I need to configure MediaWiki to point to our corporate mail server. [snip]
I think this has to be done somewhere in php.ini (some smtp parameters)...
I'm struggling with this issue as well. Unfortunately, I'm not very experienced when it comes to server administration (using Apache on Windows 2000), and my previous attempts at fiddling with the PHP.INI were rather unsuccessful. So I, too, would greatly appreciate some guidance on this...
-- F.
Frederik Dohr a écrit :
I need to configure MediaWiki to point to our corporate mail server. [snip]
I think this has to be done somewhere in php.ini (some smtp parameters)...
I'm struggling with this issue as well. Unfortunately, I'm not very experienced when it comes to server administration (using Apache on Windows 2000), and my previous attempts at fiddling with the PHP.INI were rather unsuccessful. So I, too, would greatly appreciate some guidance on this...
on a WAMP local install, I did this in php.ini (BTW, be sure to use the good php.ini, the one that is used by apache, because sometime you may have several php.ini files. If you don't know where is php.ini use php function "phpinfo();" to get the path to the good php.ini):
[mail function] SMTP = smtp.server.com smtp_port = 25 ;default value sendmail_from = yourmail@server.com
where smtp.server.com is the name of your sending-mail server (the same one you're using in thunderbird or outlook)
for a LAMP, you only need to install sendmail and to define
sendmail_path = path/to/sendmail
Don't forget to restart your apache server after each modification to php.ini Don't forget to enable mails in Localsettings.php :
$wgEnableEmail = true; $wgEnableUserEmail = true;
on a WAMP local install, I did this in php.ini
Thanks, this cleared things up for me - not exactly in a positive way though; turns out I can't just use organization's SMTP server. So I'll brace myself for entering the bureaucratic jungle now...
(I hope Alister's issue will be more straightforward to solve.)
-- F.
Frederik Dohr wrote :
Thanks, this cleared things up for me - not exactly in a positive way though; turns out I can't just use organization's SMTP server. So I'll brace myself for entering the bureaucratic jungle now...
just a thought : you could possibly try to install sendmail on your windows server (no idea how to do this... maybe using cygwin or some unofficial port ?)
you could possibly try to install sendmail on your windows server (no idea how to do this... maybe using cygwin or some unofficial port ?)
Come to think of it: I know XAMPP comes with "fake sendmail for windows" (http://www.glob.com.au/sendmail/). So I entered that in PHP.INI as follows:
SMTP = localhost smtp_port = 25 sendmail_from = wikiAdmin@localhost.com sendmail_path = "D:\XAMPP\sendmail\sendmail.exe -t"
The default SENDMAIL.INI looks like this: [sendmail] ; you must change mail.mydomain.com to your smtp server smtp_server=localhost
Both $wgEnableEmail and $wgEnableUserEmail are set to true in LocalSettings.
It doesn't seem to work though; I've sent a user-to-user mail via [[Special:Emailuser]] a couple of minutes ago, but it still hasn't arrived...
-- F.
PS: I hope I'm not hijacking the Alister's thread here!?
Frederik Dohr wrote :
Come to think of it: I know XAMPP comes with "fake sendmail for windows" (http://www.glob.com.au/sendmail/).
found on http://www.glob.com.au/sendmail/:
"it doesn't support deferred delivery, and requires an smtp server to perform the actual delivery of the messages."
found on http://www.glob.com.au/sendmail/:
"it doesn't support deferred delivery, and requires an smtp server to perform the actual delivery of the messages."
Oh, I see - I must have overlooked that, sorry.
So I'll have to go the bureaucratic way after all...
Thanks for your assistance!
-- F.
On 07/05/07, Webb, Alister Alister.Webb@team.telstra.com wrote:
Hi, I have set up an instance of MediaWiki on our internal corporate network. To get email reminders happening, I need to configure MediaWiki to point to our corporate mail server. Can anyone tell me where that pointer - the name of the server, e.g. mail.company.com - is set? I have looked in DefaultSettings.php (in the 'Includes' folder) and LocalSettings.php, but can't work it out.
You'll need to configure MediaWiki to use SMTP via the Pear::Mail extension. Install this (see PHP documentation on how to install from Pear, it's not hard; often a one-liner in a command prompt) and then copy the $wgSMTP array over from includes/DefaultSettings.php to LocalSettings.php, and alter according to the needs of your configuration.
Rob Church
mediawiki-l@lists.wikimedia.org