Can't Send Out Confirmation E-mails (using SMTP)
(confirmed on Slackware 10.2 & Mediawiki 1.7.x)
To use SMTP on Mediawiki 1.5+ you must add:
$wgSMTP = array( 'host' => "your.smtp.server", 'IDHost' => "your domain or blank", 'port' => 25, 'auth' => true (or false), 'username' => "username (if auth=true)", 'password' => "password (if auth=true)" );
- ...somewhere into LocalSettings.php (found in the Mediawiki's root directory).
After adding the above to your LocalSettings.php file, the SMTP service still probably will not work. If you examine your
/var/log/apache/error_log file, it probably will have this error:
[error] PHP Warning: usermailer(Mail.php): failed to open stream: No such file or directory in /home/joebleau/public_html/wiki/includes/UserMailer.php on line 82
For some reason, the Wiki's config script screws up the path to the PHP's PEAR extensions. To fix this, edit the LocalSettings.php line that says:
$path = array( $IP, "$IP/includes", "$IP/languages");
$path = array( $IP, "$IP/includes", "$IP/languages", "/usr/lib/php" );
After that, your smtp outgoing mail should work for your Mediawiki installation.