Open main menu

Extension:MailNotification

MediaWiki extensions manual
OOjs UI icon advanced.svg
MailNotification
Release status: beta
Implementation Notify
Description A small extension to send mails to registered users via a cronjob.
Author(s) Ramin Dalkouhi
Latest version 0.1
MediaWiki 1.7.2
License No license specified
Download MailNotification-0.2.zip
Translate the MailNotification extension if it is available at translatewiki.net
Check usage and version matrix.

Extension:MailNotification stores a list of article changes within a separate 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.

UsageEdit

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

The execution path must be set to <path-to-your-extensions-folder>

InstallationEdit

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

ParametersEdit

No parameters are supported.

Changes to LocalSettings.phpEdit

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

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

CodeEdit

There are no code examples available.

RemarksEdit

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.

LicenseEdit

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