Published: 03/17/11 11:38 AM
I got several errors when trying to make mediawiki send e-mails on my windows 7 xampp 1.7.4 test-installation. Now here’s what I did.
First I unsuccessfully tryed to set $wgSMTP in LocalSettings.php as mentioned here and on several other pages. Loads of strict- and deprecation-warnings appeared, no E-Mail was send.
The solution is to change xampp/php/php.ini as follows
; For Win32 only. ;sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
It is important to set the sendmail_path to the executable on windows although the documentation says “for unix only”.
Then modify xampp/sendmail/sendmail.ini as follows:
; you must change mail.mydomain.com to your smtp server, ; or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup) ; emails delivered via IIS's pickup directory cause sendmail to ; run quicker, but you won't get error messages back to the calling ; application. smtp_server=mysmtpserver.de ; smtp port (normally 25) smtp_port=25 ;[...] ; if your smtp server requires authentication, modify the following two lines auth_username=myusername auth_password=mypassword
Make sure to restart apache. Also make sure to remove $wgSMTP from LocalSettings.php if you added it.