#sudo pear upgrade --force http://pear.php.net/get/PEAR #sudo pear install mail #sudo pear install mail_mime #sudo pear install Net_Socket #sudo pear install Auth_SASL #sudo pear install Net_SMTP #sudo vi /var/www/wiki/LocalSettings.php ... #to be sure we can debug error_reporting(E_ALL); ... #point to the location of Mail.php which in this case was /usr/share/php/ ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages:/usr/share/php/" ); .. #some mandatory settings $wgEnableEmail = true; $wgEnableUserEmail = true; ... #SMTP settings. Your's might be different of course $wgSMTP = array( 'host' => "smtp.sample.com", 'IDHost' => "sample.com", 'port' => 25, 'auth' => false ); ... $wgEmergencyContact = "support@sample.com"; $wgNoReplyAddress = "no-reply@sample.com"; $wgPasswordSender = $wgNoReplyAddress; ... $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; $wgEnotifMinorEdits = true;
Note that in order to get email notifications for pages you watch you must authorize your email and check the box "E-mail me when a page on my watchlist is changed". Just look for "E-mail confirmation" in your Preferences page.
No comments:
Post a Comment