Extension:MailNotification

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
MailNotification

Release status: beta

Implementation Notify
Description A small extension to send mails to registered users via a cronjob.
Author(s) Ramin Dalkouhi
Version 0.1
MediaWiki 1.7.2
Download MailNotification-0.1zip

Contents

[edit] What can this extension do?

The extension stores a list of article changes within a seperate database table and if the included cronjob is started, the list is sent to all registered users via mail. This is the first version of that extension. Currently, notification mails are sent to all users no matter if the e-mail address has been confirmed or not.

[edit] Usage

Simply register MailNotification.cronjob.php to run at certain time intervals as required, for example, every morning at 9:00 am. As this is a platform specific action, it depends on your system. For windows operating systems, simply add a task (c:\windows\Tasks) which executes:

php.exe <path-to-your-extensions-folder>/MailNotification.cronjob.php

[edit] Installation

Copy all files to your wiki/extensions folder and register the cronjob as described above.

[edit] Parameters

No parameters are supported.

[edit] Changes to LocalSettings.php

Register the MailNotification extension by adding the following line to your LocalSettings.php file:

require_once( "$IP/extensions/MailNotification.php" );

[edit] Code

There are no code examples available.

[edit] Remarks

Actually, this extension has been developed for a small development team which uses media wiki as communication platform. The implementation became necessary as no one did regulary check for wiki changes. It helps reminding people about the wiki's existance.

The environment used while developing is windows-based therefore, the usage example refers to the windows task system. Additionally, in our environment, Joomla! is used as media-wiki container.

[edit] License

Released under the LGPL License as pictured in www.gnu.org/licenses/lgpl.html.

Personal tools